Mike Blumenkrantz
738622b068
send wl kbd modifiers only when changes occur
2015-07-22 17:46:39 -04:00
Mike Blumenkrantz
d38b2eb6b3
create/manage list of focused wl keyboard resources for reuse in kbd operations
...
this simplifies kbd code all over
2015-07-22 17:40:28 -04:00
Mike Blumenkrantz
0b66c2d841
set new_client flag on xwl clients during swap
...
this forces another run of client placement so that xwl clients do
not always appear at 0,0
2015-07-22 17:10:49 -04:00
Mike Blumenkrantz
ae1fc10d06
remove unnecessary geometry setting during xwl client swap
...
this geometry will be applied during show
2015-07-22 17:10:11 -04:00
Mike Blumenkrantz
43ed8dbdb5
set shell-less wl surface mapped state regardless of visibility during commit
...
new_client flag here will defer show operations, but the operations will complete
2015-07-22 17:09:14 -04:00
Mike Blumenkrantz
6dfc6da02c
update wl keyboard resource key presses on focus in/out of surfaces
2015-07-22 16:59:23 -04:00
Mike Blumenkrantz
5c5fb11187
allow wl client focus-out callback to execute on deleted E_Clients
2015-07-22 16:28:48 -04:00
Mike Blumenkrantz
435bd8794a
don't update wl keyboard state on client focus events
...
this is always up-to-date
2015-07-22 16:28:08 -04:00
Mike Blumenkrantz
75fb072dc3
fix backlight init value
...
in the case where xrandr is not used, setting backlight to very dim on init
will result in the backlight remaining at a very dim level when the backlight
normal level is 1.0 since backlight values will not successfully update until
at least 0.05s after the main loop starts
ref T1333
2015-07-22 13:56:19 -04:00
Mike Blumenkrantz
818fcb01f4
fix compositing error when client is ec->hidden during show animation
...
this prevented clients from being deleted and resulted in artifacts and
memory leaks
2015-07-22 13:30:02 -04:00
Mike Blumenkrantz
a3d5762bf2
simplify deskmirror client desk checking
2015-07-22 13:23:53 -04:00
Mike Blumenkrantz
9c1fca5a16
fix wl build
2015-07-22 12:24:35 -04:00
Mike Blumenkrantz
a9db84f94e
simulate modal windows for badly behaved x11 clients
...
it seems that some clients, eg. libreoffice, don't set the modal window
property on child dialogs. instead of fighting for focus, set up the child
as a modal on the parent and then avoid the whole issue
fix T2594
2015-07-21 18:24:39 -04:00
Mike Blumenkrantz
a951b88305
don't block keybind activation while grabs are active
2015-07-21 15:33:50 -04:00
Mike Blumenkrantz
b51e5fa0b2
ensure clients possess comp_data before dereferencing it during x11 stacking
...
ref T2566
2015-07-21 14:34:11 -04:00
Mike Blumenkrantz
5c00c1009b
redo wl compositor key eventing
...
* break out key callbacks into EINTERNs
* remove extraneous/unused mouse event handlers
* enforce wl modifier updating in all cases
* ensure keybinds are activated before wl clients receive input
- block wl client input during grabs
fixes T2565
2015-07-21 14:27:29 -04:00
Mike Blumenkrantz
d2fce4ce27
do not add x11 compositor desklock hooks in non-x11 compositor
2015-07-21 14:25:41 -04:00
Mike Blumenkrantz
2ce5dfa33f
add wl compositor desklock hooks to add grabs during lock
2015-07-21 14:25:16 -04:00
Mike Blumenkrantz
21b8016c5b
add clients to focus stack as necessary in e_client_unignore()
2015-07-21 14:21:36 -04:00
Mike Blumenkrantz
3c3f0845f3
fix typo in comp object opaque region render
...
#DerekWasRight
2015-07-20 17:26:13 -04:00
Mike Blumenkrantz
f6725c53a4
move opaque region (image border) apply to render fn
...
this seems to provide a more accurate region for rendering in my tests,
as various weston-apps no longer show black rects during resize
2015-07-20 14:38:44 -04:00
Mike Blumenkrantz
612a61ce0e
don't mangle wl client opaque region tiler during commit clip
2015-07-20 14:38:31 -04:00
Mike Blumenkrantz
4acce00428
improve wl compositor tiler usage
...
pixman <-> tiler api naming seems similar but functionality is totally
different
2015-07-20 14:10:55 -04:00
Mike Blumenkrantz
4d76741533
only perform keybind grabs on root window for x11 compositors
2015-07-20 13:32:06 -04:00
Mike Blumenkrantz
f2d71ad903
block compositor keybinds using more accurate x11 detection
...
blocking based on event window here is only valid for true x11 compositors
and not just compositors with root windows
fixes keybind activation when running xwayland clients
2015-07-20 13:29:13 -04:00
Carsten Haitzler
ee16a11455
e - randr allow you to turn off screens and keep them off if config says so
2015-07-19 22:41:48 +09:00
Carsten Haitzler
94a15856bd
e - unbreak client pixmaps when native surf is used
...
this unbreaks disappearing client content introduced by
5a001b1759
.
2015-07-18 23:39:46 +09:00
Mike Blumenkrantz
6b7ce91373
do not set opaque regions on comp object mirrors
...
based on testing, this breaks all rendering of related objects. I
suspect that the image border needs to be manually scaled based on
image::mirror proportions in order for this to work as expected, but
adding the required code seems like too much complexity for nearly zero
gain
2015-07-17 16:09:52 -04:00
Mike Blumenkrantz
1d4d906361
render surface opaque regions as opaque when image border is set
...
it seems that just setting the opaque region is not enough for evas;
we must also inform it that the opaque region is opaque and should not
be blended
2015-07-17 16:07:01 -04:00
Mike Blumenkrantz
552f065c09
zero out wl surface opaque region on commit in all cases
...
it's possible that the opaque ptr may exist but have no regions,
which will result in the previous frame's opaque region being used
2015-07-17 15:58:14 -04:00
Mike Blumenkrantz
bd776b157f
add e_client_unignore() for triggering events when unignoring a client
...
mainly for use in wayland compositing since all surfaces are ignored
until they get a shell surface or a commit
2015-07-17 15:30:30 -04:00
Mike Blumenkrantz
51c74889cf
fix wl_fb define name in comp init
2015-07-17 15:30:30 -04:00
Mike Blumenkrantz
5a001b1759
enforce image border/size/pixels_dirty setting on comp mirrors during create
...
this should provide a more accurate first-render for mirrors as they are added
2015-07-17 15:30:30 -04:00
Mike Blumenkrantz
6471ba0a05
do not update client list hint when creating a new wayland client
2015-07-17 15:30:30 -04:00
Mike Blumenkrantz
fbe55d20f1
always set new wayland E_Clients to be ignored during client hook
2015-07-17 15:30:30 -04:00
Mike Blumenkrantz
d5e25a8449
add wl_wl wl output module
...
it is now possible to create a xephyr window in a drm-enlightenment session,
launch wl-x11 enlightenment in xephyr, and then launch wl-wl enlightenment
inside that enlightenment
the primary limitation on this output module is that all internal windows will
appear in the outer compositor due to the current restriction of ecore-wayland
with regard to only having a single global display server connection
#Inception
2015-07-17 15:30:30 -04:00
Seunghun Lee
faacad29dc
remove a kind of typo in E_ZONE_GEOMETRY atom string.
...
Test Plan: N/A
Reviewers: devilhorns, zmike
Reviewed By: devilhorns, zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2833
2015-07-17 15:04:39 -04:00
Chris Michael
bf993c6eee
e-comp-wl: Fix region_add and region_subtract functions to make sure we have accurate opaque regions
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-17 14:58:34 -04:00
Mike Blumenkrantz
32c48f9a40
...and also ungrab the compositor when internal drags end
2015-07-16 12:59:04 -04:00
Mike Blumenkrantz
2e5ab5a947
only use input xwindows for internal drags in x11 compositor
...
this fixes input region detection for dnd operations
fix T1831
2015-07-16 12:52:00 -04:00
Mike Blumenkrantz
7859787f73
wl clients should not use edges during keyboard resize
...
ref T2452
2015-07-15 18:08:32 -04:00
Mike Blumenkrantz
ecb5f4ca41
add E_Client->keyboard_resizing flag
...
there is no other indication of whether a client is resizing using the
keyboard, so this should serve as an adequate hint
2015-07-15 18:07:12 -04:00
Mike Blumenkrantz
73c03565b3
never use new clients for stacking part 2: the secret of the stacking
...
a client with this flag set here is unreliable to use as a stacking
reference since it has yet to be stacked and can be located anywhere
in the window stack.
fixes internal window stacking on startup
2015-07-15 16:22:02 -04:00
Mike Blumenkrantz
008a0658ec
only trigger client mouse-in from x11 mouse move event if client+desk are visible
...
ref T2566
2015-07-15 14:27:19 -04:00
Mike Blumenkrantz
17e878eca3
simulate netwm sync for xwl clients
...
blocks execution of resizes until the surface commit arrives. reduces
the race condition between resize and render and eliminates frame drops
during slow resizes
2015-07-15 13:58:03 -04:00
Chris Michael
321a421208
e-comp-wl: Remove unused variable
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-15 13:46:51 -04:00
Chris Michael
9e2512eb98
e-comp-wl: Fix T2570: stuck key when closing efm windows
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-14 15:26:38 -04:00
Chris Michael
e46c0812fc
e-comp-wl: Fix getting end key during key down/up events
...
NB: This is actually an Oopsie from a previous commit that should not
have gotten in.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-14 15:10:38 -04:00
Chris Michael
147bc3d71a
e-comp-wl: don't send keyboard modifiers twice.
...
NB: e_comp_wl_input_keyboard_modifiers_update already sends keyboard
modifiers to all keyboard resources, so no need to call this twice.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-14 14:46:13 -04:00
Chris Michael
116af14649
e-comp-wl: Update keyboard and modifier state AFTER we send them to clients
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-14 14:18:21 -04:00
Chris Michael
46997706ea
e-comp-wl: Add support for wl_keyboard_send_repeat_info to allow for configurable keyboard repeat rates
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-14 13:29:02 -04:00
Chris Michael
74e96f3826
e-comp-wl: Update keyboard key state regardless of client focus or not
...
Key state updates need to be consistent. As we update the key state on
key up regardless of client focus, then we should be doing the same in
the key_down event handler so that key state remains consistent.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-14 13:29:02 -04:00
Chris Michael
5052bd9266
e-comp-wl: Don't call keyboard_modifiers_update twice
...
e_comp_wl_input_keyboard_state_update already makes a call to
e_comp_wl_input_keyboard_modifeirs_update so there is no need to call
it twice on key up/down events.
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-14 13:29:02 -04:00
Mike Blumenkrantz
161b67a53d
Revert "delete render updates for xwayland clients upon triggering a client resize"
...
This reverts commit f3f29a0cf8
.
upon further review, this was not at all helpful and breaks resizing eventually
2015-07-14 13:12:06 -04:00
Simon Lees
e8911323c3
e_bg_del should only delete the bg on the zone specified
...
Summary:
previously e_bg_del didn't take the zone paramater into
account
fixes T2572
Reviewers: raster, zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2810
2015-07-14 12:32:37 -04:00
Carsten Haitzler
964fabe6e2
e randr2 - auto clone and use common res when doing so - make it work
...
tested this and made it work. should fix T2100
2015-07-12 18:12:00 +09:00
Mike Blumenkrantz
c128d54690
disable size debug on drags
2015-07-11 08:37:56 -04:00
Mike Blumenkrantz
f3f29a0cf8
delete render updates for xwayland clients upon triggering a client resize
...
fixes frame dropping during resize
2015-07-10 16:59:47 -04:00
Mike Blumenkrantz
311f524094
only register dnd xwindow with compositor canvas in x11 compositor mode
...
registering it under wayland creates spurious mouse events
2015-07-10 16:03:45 -04:00
Mike Blumenkrantz
4a779ef03d
fix xdnd in (x)wayland
...
this is a real thing, so don't abort immediately if it happens
2015-07-10 16:03:18 -04:00
Mike Blumenkrantz
e92519f171
adjust layering of pointer and init splash
...
prevents cursor from getting stuck above screensaver fade
2015-07-10 14:21:50 -04:00
Mike Blumenkrantz
697e1beda3
add wayland client post-render references in the render loop
2015-07-10 13:22:15 -04:00
Mike Blumenkrantz
bec06b8703
add function to fill in x11 cursor image on creation
...
xwayland compositing requires that we set up a root window cursor image
immediately since we'll be getting that cursor surface to display as soon
as the pointer goes out of an x11 client's window
2015-07-10 13:04:12 -04:00
Mike Blumenkrantz
5a26363046
break up some pointer setting code into helper functions
2015-07-10 13:03:05 -04:00
Mike Blumenkrantz
5d9cefd9e2
always set x11 override client geometry on startup
...
this geometry isn't something we can change later, so apply it now.
also fixes an ACK when trying to show input_only clients early
2015-07-10 12:07:29 -04:00
Mike Blumenkrantz
c9d5053998
disable netwm sync on x11 clients in wayland compositors
...
this has no effect
2015-07-09 19:32:51 -04:00
Mike Blumenkrantz
884068ff9d
when e crashes in wayland, just crash instead of possibly freezing
2015-07-09 15:11:13 -04:00
Mike Blumenkrantz
399e3c79ce
unify crash handler functions
2015-07-09 15:01:50 -04:00
Mike Blumenkrantz
20d281d9d3
redo e_pointer to support xwayland cursors
...
this requires that both canvas cursors and window cursors be present for the same
E_Pointer object, even though only the canvas cursor is actually visible
#kansas
2015-07-09 14:45:04 -04:00
Mike Blumenkrantz
c4c18ed30b
return to using standard client util fns for getting client wins in x11
2015-07-08 17:16:25 -04:00
Mike Blumenkrantz
54c6d7094e
remove unnecessary E_COMP_WL #defines
...
this is only required for aliasing E_Client->comp_data as wayland compositor data.
if comp_data is never dereferenced, it is not necessary to declare the compositor
type
2015-07-08 17:12:42 -04:00
Chris Michael
f214d9d73b
e-comp-wl: Create compositor screenshooter global and add function to actually handle taking shots
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-08 15:08:35 -04:00
Chris Michael
66a42b7994
e-comp-wl: Add screenshooter structure to comp_wl_data and add additional fields we need in E_Comp_Wl_Output
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-08 15:08:35 -04:00
Chris Michael
411a5717c7
e-comp-wl: Add screenshooter files to build order
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-08 15:08:35 -04:00
Chris Michael
fcb560fca7
e-comp-wl: Add screenshooter protocol files
...
Signed-off-by: Chris Michael <cp.michael@samsung.com>
2015-07-08 15:08:35 -04:00
Mike Blumenkrantz
6a459e3a4c
remove NEED_X define from build
...
this used to be a marker for places where x11 functionality was needed,
but this has been simplified with the removal of wayland-only in configure
and so it is no longer needed
2015-07-08 14:49:33 -04:00
Mike Blumenkrantz
9f51bffd1e
make e_client_util_.?win_get() fns return xwayland windows when available
...
fixes setting x11 hints in xwayland clients
2015-07-08 14:48:19 -04:00
Mike Blumenkrantz
af15bf11eb
set xwayland clients in x11 compositor client hash using parent window on flip
2015-07-08 14:47:24 -04:00
Mike Blumenkrantz
53ff8b764f
properly calculate client+frame sizes during wl surface commit
2015-07-08 14:46:12 -04:00
Mike Blumenkrantz
9bdb805f48
account for race condition when creating initial comp object updates tiler
...
under wayland, some surfaces (eg. cursors) would attempt to show prior to
having acquired their actual size. these show attempts should be rejected
until the size has been set to ensure that rendering can proceed as expected
fix T2557
2015-07-08 12:36:36 -04:00
Mike Blumenkrantz
c961408d7f
block client signal binding activation when mouse action is active
...
this prevents oddities such as activating [window shade] and [resize] actions
simultaneously from breaking the compositor
2015-07-07 13:12:20 -04:00
Mike Blumenkrantz
17f0ce3713
move grabinput focus fix timer to x11 compositor and fix it to Work Better
...
see inline comments about x11 focus eventing for details
fix T2547
2015-07-06 15:46:02 -04:00
Mike Blumenkrantz
409bc58131
use ref macros to silence more printfs in e_remember
2015-07-06 14:29:30 -04:00
Mike Blumenkrantz
703199ef88
silence printf noise in screensaver and pkgkit module
2015-07-06 12:52:36 -04:00
Mike Blumenkrantz
970b46b631
make e_client_util_desk_visible() work for overrides without desks
2015-07-06 12:47:00 -04:00
Carsten Haitzler
c8db4e08fc
e desktop file properties - fix icon sel tab to expand icon and icon name
...
this fixes this tab after e20 dev changes
2015-07-05 10:51:13 +09:00
Derek Foreman
528d8b31fc
Init some vars to NULL in compositor create
...
Summary: In some cases these end up uninitialized and we crash.
Reviewers: zmike
Subscribers: cedric
Differential Revision: https://phab.enlightenment.org/D2788
2015-07-02 17:54:40 -04:00
Mike Blumenkrantz
6323d0fb51
only apply xwl client deletion to xwl clients in x11 compositor
2015-07-02 16:49:19 -04:00
Mike Blumenkrantz
8b6b7b1f56
reorder xwayland client swap attribute setting
2015-07-02 14:58:10 -04:00
Mike Blumenkrantz
e9060ce771
unset x11 focus grabs on clients only if there is an xwindow present
...
fix T2539
2015-07-02 14:57:42 -04:00
Mike Blumenkrantz
1716f1a6fa
return NULL when a client's xwayland pixmap is unreachable
2015-07-02 14:57:01 -04:00
Mike Blumenkrantz
c054506d4e
block wl key events from reaching clients during client actions or key grabs
2015-07-02 14:30:54 -04:00
Mike Blumenkrantz
6fa4e93d19
reject xwayland module from saved module loading
2015-07-02 14:26:28 -04:00
Mike Blumenkrantz
0a5e00488d
set initial surface attrs for internal wl clients
2015-07-02 14:26:02 -04:00
Mike Blumenkrantz
2fe9f7c5e8
fix typo in conditional for setting x11 hints
2015-07-01 17:42:26 -04:00
Mike Blumenkrantz
db92edccf6
do not apply x11 focus grabs to internal elm clients
...
due to recent changes in ecore-input-evas, mouse events are propagated
differently; specifically, there are now "more" events than there previously were.
as a result, grabs on internal wins are no longer necessary, though they probably
never were necessary after the elm conversion
see 5cb6cdbc5e1a13ea0262e155983b494e6519abde in efl
2015-07-01 17:14:27 -04:00
Mike Blumenkrantz
9eb3abd45a
reject x11 replay clicks when event window != client window
2015-07-01 17:01:54 -04:00
Mike Blumenkrantz
fa684556d9
only ungrab x11 windows when appropriate focus options are set
2015-07-01 16:48:26 -04:00
Mike Blumenkrantz
2485cbbd13
allow hint setting on x11 windows in xwayland
2015-07-01 16:44:09 -04:00
Mike Blumenkrantz
99ddeb6d69
replace comp_x usage of internal xwindow detection function with new util fn
2015-07-01 16:41:26 -04:00