Commit Graph

8530 Commits

Author SHA1 Message Date
Sebastian Dransfeld e781a9b68e It is correct to fall through here
Add comment and remove coverity error
2013-12-07 22:23:39 +01:00
Sebastian Dransfeld 8b198d77f5 bd->zone is always set
lots of code always assume it is set, so no need to be paranoid
2013-12-07 22:21:31 +01:00
Sebastian Dransfeld e891ac7c16 Remove assignment to unused variable
p isn't used after this, so no need to assign it.

Fixes CID 1039757
2013-12-07 22:13:37 +01:00
Sebastian Dransfeld fcc82e3e34 Fix 03d50e9546
If this ever worked it's a miracle. remember_sigill is initialized for
each loop, so it can't remember anything.

Fixes CID 1039950
2013-12-07 22:09:49 +01:00
Sebastian Dransfeld 139153cf2c Initialize siginfo_t
If we don't run the ptrace below, siginfo_t should be initialized.

Fixes CID 1039767
2013-12-07 21:59:56 +01:00
Sebastian Dransfeld 0c4131d1be Use strncpy instead of strcpy
Even though a user has to be stupid to trigger this, strncpy should be
used if not to much hassle :)
2013-12-07 21:47:42 +01:00
Sebastian Dransfeld 7542ddef4c break out of while, not return
No change in functionality

Fixes CID 1039946, 1039948 and 1039949
2013-12-07 21:39:30 +01:00
Sebastian Dransfeld 0e5e0ec218 reduce indent level 2013-12-07 21:33:16 +01:00
Sebastian Dransfeld 05f00710f2 Check return value from mkdir
If mkdir fails, no need to stat.

Fixes CID 1039963
2013-12-07 21:32:11 +01:00
Mike Blumenkrantz 25ab377291 unbreak menu dnd 2013-12-06 11:44:45 -05:00
Carsten Haitzler 9456e88504 e_sys - fix busy spin problem with security clamp-down 2013-12-06 09:19:08 +09:00
Mike Blumenkrantz 7a8ad8080e finally fix bug where gadgets on shelves would randomly reorder during drags
ticket #everydamngadgetticketevercreated
2013-12-05 12:27:46 -05:00
Mike Blumenkrantz a0edbd69b0 don't try to apply gadcon container geometry when injecting
fixes case of gadgets dragged onto a shelf always going to the right side

ticket #jpeg
2013-12-05 12:24:50 -05:00
Mike Blumenkrantz ed6bfb1955 subtract zone position from initial gadcon client drag coordinates
T369
2013-12-04 23:09:12 -05:00
Mike Blumenkrantz c49d5eea96 remove more calls to useless gadcon function 2013-12-04 23:08:50 -05:00
Mike Blumenkrantz 0b6ec2d07a move and unify a gadcon drag block 2013-12-04 23:06:57 -05:00
Mike Blumenkrantz 84cb16cf8f remove call to useless gadcon function 2013-12-04 23:05:50 -05:00
Mike Blumenkrantz 842d830c39 remove ability to alter gadgets in EFM toolbars
this whole site as a "fully functioning gadcon" is pretty broken (by design), and it's not worthwhile to fix it at this point
2013-12-04 12:21:22 -05:00
Carsten Haitzler 59080c6752 bump randr settings up 1 more epoch for e18 release
bump to epoch 3 (version 1 again) so that an e17.6 release can bump
version up but then e18 bump it up again.
2013-12-03 16:56:59 +09:00
Mike Blumenkrantz b7fb8e7f8d ensmallen efm icon event area
previously it was impossible to click between icons. now it is.

T377
2013-12-02 16:18:05 -05:00
Mike Blumenkrantz 479bb201e3 unify efm icon positioning code 2013-12-02 16:14:22 -05:00
Mike Blumenkrantz 0ba6584994 move dnd input window free to drag free function
fix T542 and other cases where dnd operations could permanently break mouse input
2013-12-02 09:06:20 -05:00
Mike Blumenkrantz 85480938cd raise fullscreen borders before entering nocomp 2013-12-01 17:27:40 -05:00
Mike Blumenkrantz bcabf5fdd3 add more borderless checks for shape cutting to catch weirdly-set borderless windows
ticket #onefang
2013-12-01 11:58:58 -05:00
Mike Blumenkrantz b3bc99d1b2 fix menu race condition crash related to screen edges
previously, this conditional would be called on most new submenus, even if the submenu's parent item was the previous item and its menu hadn't been set yet. hours of small mouse movements revealed that this should never be called when the parent item has not yet been set
2013-12-01 11:32:11 -05:00
Mike Blumenkrantz 63f9ddcbb0 improve upgrade path for removal of raise on focus option 2013-12-01 10:19:59 -05:00
Carsten Haitzler 666df815cd e_sys - address security concerns with environment - more
add more environment variables to nuke and add alternate envrionment
nuke method to raise security level.
2013-12-01 11:50:51 +09:00
Carsten Haitzler bb4a21e986 e_sys - address security concerns with environment and gdb
1. clear out environment as best is possible before executing
anything. especially PATH and IFS are set to minimal base defaults.
also use clearenv() if available and unsetenv()

2. remove gdb method as it's just too dangerous. run it as normal as
the user and if the kernel / distro dny that - then sorry. too bad.
2013-11-30 22:26:30 +09:00
Mike Blumenkrantz 1c0de40ccc remove an old case of "raise on focus" from focus revert 2013-11-29 11:58:39 -05:00
Mike Blumenkrantz 6ccc845a23 only unset comp_hidden on windows after desk flips if the window is not shaded
ticket #onefang
2013-11-28 11:02:02 -05:00
Mike Blumenkrantz da6f94a975 only change a window's vdesk when getting window profile if the current desk does not have the required window profile
ticket #onefang
2013-11-28 09:56:08 -05:00
Mike Blumenkrantz cd7a0e6b64 simplify code for moving windows to other desks: add effect unclipping to e_border_desk_set 2013-11-28 09:43:20 -05:00
Mike Blumenkrantz 6253a2f91b instead of just removing comp module on load attempt, replace it with conf_comp and enable it 2013-11-28 09:38:02 -05:00
Mike Blumenkrantz 1d60852734 force comp effect reset/unclip when switching desks using border menu
T478
2013-11-27 10:38:21 -05:00
Mike Blumenkrantz e4e6b0d0fd force comp reshape after desklock hide
should fix T440
2013-11-27 10:38:21 -05:00
Carsten Haitzler bb8e4e830c revert threaded app menu filling code - not stable in efreet
efreet still has lots of problems somewhere (unknown where) with
threaded use. it's just not safe even now. i'm seeing insanely
easy-to-reproduce issues every time i bring up a menu. since this is
unlikely to be solved in efreet before release, don't depend on efreet
being threadsafe and go back to the non-threaded code.

Revert "e: No need to check MINOR twice"
This reverts commit 97dd1d7486.
Revert "app menu parsing is now async with efreet 1.8"
This reverts commit 3989e54e21.
2013-11-27 19:43:05 +09:00
Carsten Haitzler 2a5443b2cb menu - fix dangling menu job not nulling job ref
this should fix T579
2013-11-27 09:13:37 +09:00
Mike Blumenkrantz cfcb80dbcb select previously renaming efm icon after rename ends 2013-11-26 13:26:53 -05:00
Mike Blumenkrantz d007a390c7 call "changed" smart callback immediately on efm refresh
fixes fileman popup race condition crashes
2013-11-26 13:26:25 -05:00
Mike Blumenkrantz 90d6defeea refresh efm after new file thread completes
T540
2013-11-26 13:15:35 -05:00
Mike Blumenkrantz 2e8adbe9ca run new file check on efm icons always, not just when rendering new icons 2013-11-26 13:15:04 -05:00
Mike Blumenkrantz 8ad5e3db39 ignore shelves from other screens when changing vdesks
T485
2013-11-26 12:43:15 -05:00
Mike Blumenkrantz b3fc8aba03 always generate efm directory actions in menu 2013-11-26 12:31:30 -05:00
Mike Blumenkrantz abff6f1427 conf2 and related subsystems were a fun and useful experiment, but this is not their time. removed.
see econf.git
2013-11-25 16:04:01 -05:00
Tom Hacohen e31472e8c3 Entry: Fix scroller position to show cursor.
Before this commit, this would not always be the case.
I added a "scroll to cursor" for every change in entry size.

This is a further fix to T169. It's not exactly what described there,
but it's a similar issue I found while fixing it.

Somehow of a stage 2 for commit 80844cbcd7.
This also adds changelog and news entries, as this issue is now fully fixed.
2013-11-25 16:34:42 +00:00
Tom Hacohen 80844cbcd7 Entry: Fix update of child size and location.
Before this commit, setting the text of an entry after the entry
has already been placed and sized, would cause the inside entry
(the one inside of the scroller) size to be the size of the viewport
instead of the real size. This would make some parts of the entry
unreachable.

This fixes T169.
2013-11-25 16:21:19 +00:00
Carsten Haitzler 9a56f95bad oops - remove debug commit that snuck in! 2013-11-24 13:50:45 +09:00
Carsten Haitzler a96f443c10 gadman - fix possible segv with conf being null 2013-11-24 12:35:47 +09:00
Carsten Haitzler 8c9404a414 thumbnailing - revert "allow all" and rely on updated extn checks 2013-11-24 11:35:15 +09:00
Carsten Haitzler 7ccf40fc7b thumbs - add more mime types that can thumbnail and have e_thumb do it right 2013-11-22 18:26:21 +09:00
Mike Blumenkrantz f43c8548e6 apply HintSystem to volume validation check 2013-11-21 15:59:33 -05:00
Mike Blumenkrantz e3d2706ac5 track udisks2 volume::storage relationships 2013-11-21 15:59:33 -05:00
Mike Blumenkrantz 6b9f1d70bc only set udisks2 drive model/vendor/serial if it's a non-blank string 2013-11-21 15:59:33 -05:00
Mike Blumenkrantz 848dec15fb revise d739ed0e2e to not break changing focus policies
thise commit added focus_policy member to E_Border as something to be used for setting a per-window focus policy. setting it on each window is a huge pain if the global policy ever changes, so it's better to use this member only as an override for the global policy which can be checked to see if it's been set
2013-11-21 12:38:35 -05:00
Sebastian Dransfeld 4bc81e47c0 fm: really strip out multiple slashes
Fixes T161, T328, T412
2013-11-21 13:56:59 +01:00
Sebastian Dransfeld d739ed0e2e handle desktop applications better
Fixes T201
2013-11-21 13:26:09 +01:00
Sebastian Dransfeld 7a6a87b955 desktop editor: Also set try exec when set exec 2013-11-21 11:52:20 +01:00
Sebastian Dransfeld 110fa27152 desktop editor: escape path to exec
Fixes T487
2013-11-21 11:50:10 +01:00
Sebastian Dransfeld c838eb74f6 menu: These ain't errors 2013-11-21 10:50:27 +01:00
Sebastian Dransfeld 089a79693b msgbus: No error if name already registered 2013-11-21 10:50:27 +01:00
Cedric Bail 46ee3c3226 e: fix generation of the wallpapper from a picture.
NOTE; eina_mkstemp doesn't alter it's parameter, you need to ask the
filename if you want it.
2013-11-21 16:52:48 +09:00
Mike Blumenkrantz cc2939b327 prepend new windows to focus stack during init
this fixes stacking after restarts since we manage and raise windows from the bottom up, meaning that we must also build our focus stack from back to front
2013-11-20 15:32:30 -05:00
Mike Blumenkrantz d17ab08019 block mouse down focus event focus setting on already-focused windows
fixes steam menus with click focus, which previously would close immediately after opening when they lost focus
2013-11-20 15:32:30 -05:00
Mike Blumenkrantz 12ce306457 accurately set menu radio item in client vdesk Move to... submenu
T478
2013-11-20 15:32:30 -05:00
Mike Blumenkrantz 7cc9e7db3b force render queue on nocomp window hide
without this, it was possible to break the compositor by enabling options which prevent unfullscreening a window on vdesk flip, which causes nocomp mode to remain permanently enabled, even after the window has closed
2013-11-20 15:32:30 -05:00
Carsten Haitzler 816f6d2406 allow $XDG_DESKTOP_DIR in file link paths for intl xlation
this solves T29 and then some.
2013-11-20 09:11:30 +09:00
Stefan Schmidt b64b67e24b e_alert: Use correct bugtracker URL.
If we have to show the white screen of death to a user we should at
least give her the correct URL to report it to.
2013-11-19 14:27:36 +01:00
Carsten Haitzler 89fdebb9bf e_exec - after an instance has its exe deleted - set exe to NULL 2013-11-18 23:35:12 +09:00
Carsten Haitzler 38bb5e09db file preview - increase preview text to 8192bytes 2013-11-18 06:08:17 +09:00
Carsten Haitzler a10d87a326 file preview text display - calculate minimum size so alignment is ok
this fixes T444 - the display of text is properly top-left aligned
with scrollbars now actually correct too for the text provided (note
that the preview doesnt put ALL text in there. just the first N bytes
which by default is 2048 but can be changed).
2013-11-18 06:05:24 +09:00
Michael Bouchaud 423f65d114 enlightenment: remove e_border_free
e_border_free isn't defined in c code.
2013-11-16 02:24:11 +01:00
Stefan Schmidt 0afd8e8910 Avoid umask problem with mkstemp by using eina_file_mkstemp
Instead of handling umask in every mkstemp case we can simply use
eina_file_mkstemp for this.

CID: 1039806
2013-11-15 16:34:55 +01:00
Stefan Schmidt 5d6960c2ce e_fm/udisk: Delete the correct storage handle.
Copy and paste bug introduced in the initial port to edbus.
This could be a cause of problems when using e_fm with removable media and udisk.

CID: 1039955
2013-11-15 15:47:54 +01:00
Chris Michael 31eda6e249 e_widget_data_get Can return NULL so we should check that else we
could potentially crash the entire window manager (for a potentially
bad module).

Fixes Phab Ticket T491

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-11-15 10:42:33 +00:00
Carsten Haitzler 4b856da2db use just pixels in slider label (size is already in title) 2013-11-13 23:16:29 +09:00
Jean-Philippe Andre 9637b07ec7 e/cserve2: add restart code for cserve2
Summary: If cserve2 crashes, enlightenment_start will respawn it again.

Test Plan:
Start E18 (in Xephyr maybe) with E_CSERVE set.
Randomly kill evas_cserve2 and enlightenment, and log out from E.

I need review for this patch as I'm not sure about all the ptrace stuff
lying around.

Reviewers: cedric

CC: raster, zmike

Differential Revision: https://phab.enlightenment.org/D287

Signed-off-by: Cedric Bail <cedric.bail@samsung.com>
2013-11-08 16:58:28 +09:00
Chris Michael 41b0eda0d7 When binding to data_device manager, if we cannot create the resource
then notify the client and get out.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-11-06 07:07:50 +00:00
Chris Michael 122a962cfa Check that creating a new data_device_interface resource does not
fail, and bail out gracefully if so.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-11-06 07:07:50 +00:00
Chris Michael 566b27d15e If we cannot create the data_offer resource, then cleanup and exit
nicely.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-11-06 07:07:50 +00:00
Bertrand Jacquin 19281cfd47 BUG/MINOR: avoid bashism in system() call
Other shell than >=bash-4 and dash does not support '&>' I/O redirection.

Introduce in commit v0.17.0-1871-g18cbd6f

 « While at it, I also fixed the piping of stdout and stderr to be nicer. »
2013-11-06 01:24:28 +01:00
Tom Hacohen 18cbd6f59a wsod: Fixed gdb hangs when generating backtraces.
After a long and hard battle with the gods of bugs I finally fixed
this stupid hang. I had to dig into the gdb source code, and gdb the
hell out of gdb, but it's now solved.

First of all, we should call gdb with -batch which exits automatically.
This however is not enough to fix it. The bug was that gdb was haning
while trying to set attributes on stdin because it was waiting for input.
This is obviously problematic when running in non-interactive mode, so
I had to pipe /dev/zero to stdin to fix it.
While at it, I also fixed the piping of stdout and stderr to be nicer.
2013-11-05 15:54:15 +00:00
Tom Hacohen add503b260 Enlightenment alert: Fix strings to refer to Git, not svn. 2013-11-04 14:34:04 +00:00
Daniel Zaoui 2cdead8184 e_exec: fix application closing process.
This is a fix to a bug that was happening on my laptop with libreoffice.
When this last one was closed, a segfault was occurring. This was due to
the use of a freed data structure. A pointer to this structure
(instance) was still stored as data of the Ecore_Exe structure.
Now, when the instance is freed, the data of the Ecore_Exe is set to
NULL.
2013-11-04 15:19:00 +02:00
Carsten Haitzler 1f5abd1886 note valgrind wrongness and reduce exe ecit event handling complexity 2013-11-03 21:04:13 +09:00
Carsten Haitzler a1d1e40559 elm integration improvement - copy themes over, fix includes and null config
provide a config upgrade path to version 13 which nulls/frees out
theme config (save memory - but more housekeeping), and that also
copeis ofer all files in ~/.e/e/themes to ~/.elementary/themes so you
don't lose themes you personally have and deletes the old e theme dir
if this succeeds.

also remove all #includes of Elementary.h and Emotion.h from single c
files as they are requirements now and in e.h

also remove theme path vars and code as theme path is no longer used.
2013-11-01 15:53:05 +09:00
Carsten Haitzler 4b4a51d189 elm theme use - use elementary only for themes and remove e's own theme
now e only uses elementary's theme. this is to stop the bitrot and
forking of e's theme vs the unified elm theme that has everything for
e in it already. this obviously makes elm a requirement of e18 on, and
this also notes that emotion is always in efl these days, so its no
longer an option, and ecore-imf is no longer used as edje does the
entires now itself. in future it'll all be elm.

this is a major unification point for themes for elm and e. this will
need some testing, but everything seems to work day-to-day, but theme
selector is untested.

this also removes the theme selector for splash as that is now simply
unified with the same theme as everything else.
2013-10-31 23:36:22 +09:00
Carsten Haitzler 6eca480e76 make emotion as well as elm requirements, ecore-imf is not used anymore. 2013-10-31 17:12:32 +09:00
Carsten Haitzler 7f78ae9e53 module version sanity check -> make sure module versions match EXACTLY.
if compile time headers (module version) does not match e's version
then modules likely may fail; to work right - so make sure they match
exactly (for release purposes)
2013-10-30 18:19:52 +09:00
discomfitor b67381916e unfocus focused+disabled widget always, not just when focus jump fails
pretty sure this doesn't affect anything in e18, but it does break things in a really hard to reproduce setting involving clicking/disabling/focusing widgets simultaneously
2013-10-26 09:53:15 +01:00
discomfitor b11305652d sanitize widget disabled_set flag, only jump focus when disabling focused widget 2013-10-26 09:52:43 +01:00
Carsten Haitzler 1c5aa36ee9 backlight - fix dimming if normal level less than dim level
if dim level is set to 20% but normal level has been moved to 10%...
when we dim dont RAISE bl level to 20% - do nothing if dim > normal.
2013-10-22 11:26:59 +01:00
Carsten Haitzler a4b70e791a fix unsafe list removal while walking it 2013-10-18 21:39:53 +09:00
Carsten Haitzler 19da294e8d gfix focus display in click-to-focus with keyboard triggered menus 2013-10-18 19:49:05 +09:00
Chris Michael 87dd451353 Fix Phab Ticket T433 for Glima where you could not disable a laptop panel
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-10-17 18:05:29 +01:00
Mike Blumenkrantz 5a519616c6 prevent layout children from being resized to 0x0 2013-10-17 09:54:42 +01:00
discomfitor d5675fd705 don't try applying randr settings when there's no outputs, this doesn't do anything 2013-10-17 08:35:27 +01:00
discomfitor 2eeb5fe129 get root window BEFORE using it to restore randr config :/ 2013-10-17 08:35:14 +01:00
Lucas De Marchi a1cb1e4671 build: Fix distcheck due to subdir sources
enlightenment_fm needs some files that are not in its subdirectory, but
rather are shared with enlightenment.

Possible solutions:

1) Use a non-recursive build for enlightenment_fm.
2) Factor out a convenience library containing necessary files
3) Copy over or link the files to build tree directory during build

For simplicity (3) is implemented here. Some files were not necessary
(e_prefix.c and e_sha1.c) and the others are now linked during build to
it's original location.
2013-10-16 01:20:40 -03:00
Lucas De Marchi c8a624cc85 build: Enable subdir-objects option in e_fm
Sadly we can't globally enable subdir-objects due to gettext choking on
it so enable at least where it's necessary. Remove the following
warning from build:

    src/bin/e_fm/Makefile.am:40: warning: source file '../e_prefix.c' is in a subdirectory,
    src/bin/e_fm/Makefile.am:40: but option 'subdir-objects' is disabled
    automake: warning: possible forward-incompatibility.
    automake: At least a source file is in a subdirectory, but the 'subdir-objects'
    automake: automake option hasn't been enabled.  For now, the corresponding output
    automake: object file(s) will be placed in the top-level directory.  However,
    automake: this behaviour will change in future Automake versions: they will
    automake: unconditionally cause object files to be placed in the same subdirectory
    automake: of the corresponding sources.
    automake: You are advised to start using 'subdir-objects' option throughout your
    automake: project, to avoid future incompatibilities.
    src/bin/e_fm/Makefile.am:43: warning: source file '../e_fm_shared_codec.c' is in a subdirectory,
    src/bin/e_fm/Makefile.am:43: but option 'subdir-objects' is disabled
    src/bin/e_fm/Makefile.am:43: warning: source file '../e_fm_shared_device.c' is in a subdirectory,
    src/bin/e_fm/Makefile.am:43: but option 'subdir-objects' is disabled
    src/bin/e_fm/Makefile.am:43: warning: source file '../e_user.c' is in a subdirectory,
    src/bin/e_fm/Makefile.am:43: but option 'subdir-objects' is disabled
    src/bin/e_fm/Makefile.am:43: warning: source file '../e_sha1.c' is in a subdirectory,
    src/bin/e_fm/Makefile.am:43: but option 'subdir-objects' is disabled
2013-10-15 11:10:50 -03:00
Chris Michael a0e993f59b Finally fix odd TV resolution cloning
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-10-14 13:35:28 +01:00
Chris Michael 07fa7e4a13 Another attempt at odd TV resolution fix.
Mike, try this one "live" please

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-10-14 12:25:48 +01:00
Chris Michael 4df53f06e3 Revert "Fix bug when hotplugging a TV where resolution does not match the"
This reverts commit a9e09bc26d.

Breaks build, and does not fix real issue. Revert
2013-10-14 11:07:24 +01:00
Chris Michael a9e09bc26d Fix bug when hotplugging a TV where resolution does not match the
parent because a TV uses a non-standard 1360 resolution

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-10-14 10:53:04 +01:00
Mike Blumenkrantz cee520ff75 clip efm icon event rect
this should fix all the weird fileselector behavior that people were getting
2013-10-14 06:11:17 +01:00
Mike Blumenkrantz e60f5261fe individial desk bgpreviews are now just icons that track the current bg image; handlers and edje are only applied when this is part of a full vdesk preview 2013-10-10 13:09:57 +01:00
Yossi Kantor 437114651d efm selection cleanups
1) efm fix: last_selection resets when icons are freed

2) When no icon is selected select first on Right/Down press or last on Left/Up keypress

3) Maintain order in range selection from first to last.
2013-10-09 13:28:19 +01:00
Mike Blumenkrantz 8a28ad9bb9 don't create border menu when border menu already exists
fixes crash from activating multiple bindings simultaneously which result in border menu being triggered
2013-10-07 10:12:54 +01:00
Mike Blumenkrantz f1a65ee922 remove "border_raise_on_focus" config option
buckle up. for the first time in history, a config option is getting removed instead of added.

the reasons for this removal are many, but let's go way back to the beginning and see why it was added:
oh wait, we can't because the commit message (from 2006) is

>>    patches that i said were in - commit. (see my reply emails)

>>    also finish off a TODO item or 2

reading through the TODO items which were also crossed off in that commit, I'm assuming that this was the "option to NOT raise on focus in click to focus" item.

== REASON 1 ==

the problem here is that there's another, BETTER option called "click raises window" (always_click_to_raise) which does the same thing, except it doesn't totally fuck you when you get a random X focus event, which happens more often than you might think.

this means that, to avoid broken behavior which might cause your windows to spastically raise for a few frames in common cases (using winlist...) with click-to-focus, you have to know that this is the default-enabled option that's fucking you, and you have to remember to manually disable it every time. if you DON'T know that this is the option that's fucking you, and you just see windows randomly raising on their own, you'll probably either ignore it or file a bug, when this is supposed to be a "feature" that actually worked in reverse, since it was intended only for disabling.

== REASON 2 ==

there's also auto-raise, which can be set to 0.0s, which is effectively the same thing since it also triggers on focus but can be configured not to fuck your window stack

== REASON 3 ==

aaand finally, this option makes any sort of pointer focus model impossible to use, since your windows will constantly be raising all over as you move the mouse

tl;dr: I'm removing it, e-dealwithit.gif
2013-10-07 06:49:33 +01:00
Mike Blumenkrantz 4446442163 remove gadcons from custom populate job during deletion
this showed up on my valgrind radar while xrandring, so it's safety time
2013-10-07 04:15:18 +01:00
Mike Blumenkrantz c2b8ec2e03 wl_desktop_shell -> whitelisted 2013-10-07 03:54:24 +01:00
Mike Blumenkrantz 5fb09a0249 add minor optimization for e_manager_current_get for most common case
there's only more than one manager when we're running true multi-head, which is pretty rare/non-existent with compositing, so we can avoid an X call here by just returning the only possible manager
2013-10-07 03:52:09 +01:00
Carsten Haitzler 1c92e22eb2 check if class string is valid first, then make sure buffer is 0 terminated
i got a segv in an strncpy... but the bt missed telling me anything
other than it was in _e_border_eval(). gdb wouldn't help.

Thread 1 (Thread 0xb7859780 (LWP 1377)):
No symbol table info available.
No locals.
No symbol table info available.
No locals.
    at /usr/include/i386-linux-gnu/bits/string3.h:121
    buf = '\000' <repeats 4095 times>
    s = <optimized out>
    event = <optimized out>
    pnd = <optimized out>
    rem_change = 1
    send_event = 1

since this is the only strncpy, i can only conclude that something is
fishy about the src or dest buffer, and i can only guess that the
strncpy is directly in e_border.c (though it could have come from an
inline func or macro form eina etc.)... but it's the best guess i have.

the strncpy will have problems if bd->client.icccm.class > 4096 in
size. buf will not be nul terminated then:

       The strncpy() function is similar, except that at most n bytes of  src
       are  copied.  Warning: If there is no null byte among the first n bytes
       of src, the string placed in dest will not be null-terminated.

as per manpage. so there was a lurking bug with a non 0 terminated
buffer.  also added check for bd->client.icccm.class as it could be
null...
2013-10-04 16:48:21 +09:00
Mike Blumenkrantz fd18b63879 search for desktops by lowercased icccm class if it's different from uppercase
fixes finding firefox and some others
2013-10-03 11:22:32 +01:00
Mike Blumenkrantz 9210b83e5f move phony e_exec creation for borders to after the desktop is located to ensure that we actually have a chance of finding a correct instance 2013-10-03 11:21:00 +01:00
Mike Blumenkrantz 7dee42020e find efm's .desktop file for efm windows 2013-10-03 11:20:36 +01:00
Mike Blumenkrantz a2d85fc0ab don't delete just-set desktop/icon objects for borders during new_client run 2013-10-03 11:20:15 +01:00
Mike Blumenkrantz 247f45f26f don't check startup_id for internal windows
this is guaranteed to be wrong and trigger confusion in e_exec
2013-10-03 11:19:21 +01:00
Mike Blumenkrantz 9ad177dd60 bugfix: add handler for xwindow hiding in dnd
this fixes the case where a drag is occurring on a window and the window is closed/hidden before the dnd leave event occurs. previously this would break things to a moderate degree and cause further dnd operations to fail, but now we bravely soldier onward
2013-10-03 10:12:44 +01:00
Iván Briano d739c009d3 Fix shelf autohide config 2013-10-02 23:19:59 -03:00
Yossi Kantor 1ac50f65b5 e_fm custom moode (Desktop) icon navigation improved and simplified 2013-10-01 13:19:55 +01:00
Yossi Kantor 38e3969e72 e_fm custom and regular mode icon selection 2013-09-30 14:54:49 +01:00
discomfitor 8b596394d6 use more accurate heuristics when calculating ConfigureRequest move coords:
1) invalidate moves resulting from stupid clients trying to re-set their current position (SUP WINE. YEAH, I'M TALKIN TO YOU, BUDDY. WHY YOU GOTTA BE MESSIN WITH MY WINDOW COORDS?)

2) clamp coords when screen limit policy is set to prevent clients from being outside the screen at all

3) all things are allowed, nothing is prohibited
2013-09-27 06:20:17 +01:00
discomfitor f5aa2779b1 ignore netwm activate messages during startup to avoid annoying desk flips 2013-09-27 06:20:17 +01:00
discomfitor 6b41a6dba9 never apply window placement policy on ConfigureRequest
geometry_auto_move is an option which should only be applied to "new" clients. we were erroneously applying it during client move/resize requests, which likely was causing unintended behavior. if this becomes an issue, the correct solution is to create (groan) another option to enforce window placement policy either [at all times] or [for client geometry requests]
2013-09-27 06:20:17 +01:00
Chris Michael 8404e3c180 Fix uninitialized variable warning.
Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-09-26 20:07:01 +01:00
Chris Michael 04da4c6406 Bump e_randr config version so everyone starts with a clean, fresh
working configuration...now that the dialog issues are sorted ;)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-26 12:15:34 +01:00
Chris Michael 8b28549aea RandR: Fix issues discovered here during testing
- Add some more debugging printouts
- When we initially plug in a monitor, set to Clone by default
- During initial clone, we cannot assume the plugged-in device
supports the same Mode so try to find a mode based on size.
- On output changes, test that an output has a crtc assigned.
- If a detached output Was the primary monitor, reset primary in config
to a valid existing monitor.
- Improve output_crtc_find code for better detection of where we can
place a new output.
- Fix "preferred mode" detection error.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-26 12:15:34 +01:00
Mike Blumenkrantz 1eb26ec077 add special happy fun time note for e_pointer_mode function usage 2013-09-26 10:56:57 +01:00
Mike Blumenkrantz 00362b2e64 greatly improve window positioning after ConfigureRequest 2013-09-26 10:53:01 +01:00
Mike Blumenkrantz 1f442e8d96 always raise with click-to-raise. seriously this time. ALWAYS. 2013-09-25 08:25:24 +01:00
Chris Michael 39816c17bc Update pointer, keyboard, and touch structures for recent upstream wayland/weston changes.
- Remove singular focus resource references
 - Use list of focus resources

 NB: Fixes zmike wayland client crash issue ;)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-24 15:21:29 +01:00
Chris Michael ccf2aa8d15 Update pointer, keyboard, and touch structures for recent upstream
wayland/weston changes.
 - Remove focus_resource and focus_listener
 - Use a list of resources instead of singular resource

NB: Fixes zmike wayland client crash issue ;)

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-24 15:20:39 +01:00
Chris Michael fa91255049 Use new wl_resource_for_each to send updated seat capabilities
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-24 11:41:35 +01:00
Mike Blumenkrantz 9f652a6a86 Revert "File manager file selection improved to fit the standart"
This reverts commit c0d2c08e90.

note to self: check and make sure test patches are not committed when pushing
2013-09-24 10:13:28 +01:00
Yossi Kantor c0d2c08e90 File manager file selection improved to fit the standart 2013-09-23 03:07:29 +01:00
discomfitor 041b148631 rrrrr use right client inset offsets for calculating ConfigureRequests
T288
2013-09-20 22:21:28 +01:00
discomfitor e23879f08f don't fade backlight instantly at all times 2013-09-20 17:52:39 +01:00
discomfitor 648a748cac reorder some backlight setting to make instant changes actually instant
backlight fading on logout is no longer permanent
2013-09-20 17:18:36 +01:00
discomfitor 4697be012d move backlight shutdown after comp shutdown since we do backlight fading in comp 2013-09-20 17:17:49 +01:00
discomfitor 2e1864879d factor in client_inset when calculating ConfigureRequest xy coords
T288
2013-09-20 17:02:25 +01:00
discomfitor bb1f5f9fdb don't show comp win animation during a forced hide
fixes unwanted fade in when desk flip animations are disabled
2013-09-19 22:16:18 +01:00
discomfitor 373c32a83f unused warn-- 2013-09-19 20:09:41 +01:00
discomfitor a59b134e49 block signal binds on deleted borders
probably fixes pointer getting stuck on move/resize from internal windows
2013-09-19 20:09:41 +01:00
discomfitor 9aea17a978 improvement: clicking filemanager during rename cancels rename 2013-09-19 20:09:40 +01:00
discomfitor 3fb3b3520b bugfix: efm now allows repeated creation of new files from menus 2013-09-19 20:09:40 +01:00
Chris Michael 599d98e3f3 Fix zmike issue w/ surface losing focus when we move/resize.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-12 15:02:59 +01:00
Chris Michael fddd57c7d9 Pass along the evas_event for mouse_in/out on a surface to the smart
callback.

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-12 15:02:59 +01:00
Carsten Haitzler 18bff67cc1 we are already at 62 shutdown entires. push up to 80 as 64 is almost full. 2013-09-12 13:59:27 +09:00
Carsten Haitzler 2ca1a5a5d4 fix comp fullscreen nocomp detection to work properly given comp changes 2013-09-12 01:23:23 +09:00
Chris Michael 0fd9c57ddc Update E18 wayland client application support with recent wayland git
changes.

 - Remove function & calls to wl_*_release as they are redefined in
the client protocol again.
 - Fix up calls for getting resource_user_data.
 - Add WL_HIDE_DEPRECTAED define

Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-09-11 10:12:30 +01:00