Derek Foreman
963afc8fea
Properly send kbd focus to xdg_shell popups
...
Oops, a client can have multiple top level windows.
ref f391a0fb67
2016-07-08 16:12:43 -05:00
Derek Foreman
f391a0fb67
Fix xdg_shell keyboard enter/leave events
...
On xdg_shell we should only ever send enter/leave to top level surfaces
or GTK becomes sad.
2016-06-29 16:23:41 -05:00
Derek Foreman
ada8e2deac
Don't send keyboard leaves to unmapped wayland surfaces
...
There are actually toolkits that create surfaces, do nothing with them,
and destroy them. Sending keyboard leave events for this causes problems.
Fixes a bug in handling of some GTK popups.
2016-06-29 16:21:49 -05:00
Derek Foreman
27e9845abd
Only unignore a client on the first commit with a buffer
...
Otherwise, if a wayland client does its first commit without a buffer
attached it will confuse our focus logic.
2016-06-29 13:20:37 -05:00
Mike Blumenkrantz
cefcc5248f
add some hacks to route mouse events to wl popups correctly while mouse is down
...
in a choice between fixing a corner case popup behavior and breaking dnd
or having functional dnd and adding hacks to fix corner case popup behavior,
adding more hacks was the obvious correct solution
ref 03a4ecbdb0
2016-06-24 11:31:02 -04:00
Mike Blumenkrantz
4852a6903b
remove unused event info from _e_comp_wl_mouse_out()
2016-06-24 11:31:02 -04:00
Derek Foreman
eb94710146
Don't try to send surface presence events for zones with no wayland output
...
Avoid that NULL pointer deref.
2016-06-24 10:05:18 -05:00
Mike Blumenkrantz
99e4f8452b
don't set need_maximize during wl commit maximize
...
this breaks the maximize!
partially reverts b5576dbb8c
2016-06-22 12:30:01 -04:00
Derek Foreman
19817b47de
Send wayland surface enter and leave events
...
These events are supposed to be sent to clients that have bound wl_output
and manipulate surfaces.
2016-06-21 12:33:49 -05:00
Derek Foreman
3ff5e8dff4
Track wayland outputs for zones
2016-06-21 12:33:49 -05:00
Mike Blumenkrantz
b5576dbb8c
use separate flag for pending wl client unmaximize
...
also set flag to prevent saved geometry from being overwritten
2016-06-20 16:04:10 -04:00
Mike Blumenkrantz
771f71e6a9
add separate mouse in/out handlers for internal wins
...
internal wayland windows are windows with ssd, meaning they can only receive
pointer events on the contents of the window and not the entire window including
decoration regions
ref T3819
2016-06-13 12:00:09 -04:00
Mike Blumenkrantz
48ee824c63
only block mouse-out callback for wl action clients if the mouse is grabbed
2016-06-01 13:11:20 -04:00
Derek Foreman
2d1802375d
Add DMABuf support for wayland
...
This adds compositor handling of DMABuf buffers. DMAbuf capabilities
are advertised for the drm back-ends, and DMAbuf buffers are handled
as native surfaces.
2016-05-18 12:05:34 -05:00
Chris Michael
b5e47665bb
stop filling logs with buffer transform/scale spam
...
Signed-off-by: Chris Michael <cpmichael@osg.samsung.com>
2016-05-15 10:47:53 -04:00
Mike Blumenkrantz
d3ba524a62
use window id for internal window pixmaps again on wayland
...
this was breaking internal windows when more than one was open, and
especially if any were open which had a parent-child relationship, by
using the same id for all internal window pixmaps
2016-05-11 15:40:10 -04:00
Mike Blumenkrantz
45e872ddf1
set E_Client->override flag for internal wins as needed
2016-05-11 15:40:10 -04:00
Mike Blumenkrantz
8d4a75575c
remove some cruft from _e_comp_wl_client_cb_new()
2016-05-11 15:40:10 -04:00
Mike Blumenkrantz
2d85b8f111
ensure int64_t is used in all cases for wl pixmap ids
2016-05-11 15:40:10 -04:00
Mike Blumenkrantz
e2390bebff
only load wayland-specific modules on startup if they have been built
2016-05-10 14:18:09 -04:00
Mike Blumenkrantz
e4f3179731
block keyboard sending for wl clients if a compositor grab is active
...
fix T3599
2016-05-10 13:00:01 -04:00
Mike Blumenkrantz
411f378998
flag wl surfaces as internal during create() based on pid matching
...
fix T3596
2016-05-06 13:52:10 -04:00
Mike Blumenkrantz
ef1772b8cb
implement wl client session recovery
...
another small feature patch brought to you by insomnia
#SamsungFeatures
2016-05-05 15:47:55 -04:00
Mike Blumenkrantz
32cf7162ed
ensure lifetime for wl client focus timer
...
fixes some focus-out crashing
2016-05-03 20:27:02 -04:00
Mike Blumenkrantz
049deb2c12
directly load extra wl modules during compositor init
...
speed++++++++
2016-04-28 17:58:45 -04:00
Mike Blumenkrantz
2c1e864fbc
move wayland surface E_Client del check to a place where it's more useful
...
completely breaks wayland on first commit? off to an auspicious start!
ref d9679f765f
2016-04-26 08:58:50 -04:00
Derek Foreman
d9679f765f
wayland: Fix crash when attempting to create surfaces for deleted clients
...
Internal clients can be deleted by keybind before the surface create
callback fires resulting in a NULL pointer dereference.
2016-04-25 16:40:32 -05:00
Mike Blumenkrantz
08cb34f7ad
ensure that wl clients do not run extra render on hide twice
...
fixes crash when applications crash
2016-04-21 13:55:23 -04:00
Mike Blumenkrantz
6aee63d1dc
redo wl (xdg)shell surface ping
...
- remove (wrong) global variables which tracked client-specific resources
- start ping upon creating a shell surface
- track client-specific shell resources on a per-client basis
2016-04-18 15:37:22 -04:00
Mike Blumenkrantz
40af8d5193
reject xwayland clients in wl client resize handlers
...
fix T3461
2016-04-18 13:15:09 -04:00
Mike Blumenkrantz
005ad4e986
fake client-side geometry during wl (un)maximize interception
...
fixes internal window maximize
2016-04-11 13:41:19 -04:00
Mike Blumenkrantz
63af4ea865
buffer server-side (un)maximize commands to ensure synchronization in wayland
...
maximize is client-initiated and compositor-enforced in wayland, meaning that a
maximize should only be acted upon in the compositor after the client has
acknowledged that it has transitioned into the maximized state (likely removing
part of its csd region) and has resized itself to match the expected maximize
size
fix T3297
2016-04-08 16:08:32 -04:00
Mike Blumenkrantz
b0f2443042
improve behavior of wl client buffered state changes during commits
...
apply e_config maximize policy for buffered (un)maximize, unset buffered states
after applying them
2016-04-08 16:05:00 -04:00
Mike Blumenkrantz
9578ae615f
do not force wl client state update (configure) on (un)maximize done cb
...
this is spurious
2016-04-08 16:04:19 -04:00
Mike Blumenkrantz
b17999de8d
do not sent wl *shell configures from resize callback during maximize
...
this is spurious
2016-04-08 16:03:28 -04:00
Mike Blumenkrantz
9516031e93
only apply buffered wl client maximize during configure if client is not maximized
...
fixes directional maximize
2016-04-07 14:00:25 -04:00
Mike Blumenkrantz
657bc713c7
don't send duplicate configure to wayland clients during unfullscreen
...
this causes unnecessary client-side resizing
2016-04-07 13:56:03 -04:00
Derek Foreman
b8ab7b0738
Remove unwanted debug detritus from last commit
...
#Oops
Reviewed-by: Mike Blumenkrantz <zmike@osg.samsung.com>
2016-04-07 13:29:58 -04:00
Derek Foreman
68587276cf
Clean up some header inclusion
...
Including certain headers in the wrong order can cause problems if
we're configured to use beta api (right now wayland forces this).
In most cases we should just be including e.h and not the individual
EFL headers anyway. This fixes some of that.
fix T3426, T3428
2016-04-07 13:14:43 -04:00
Mike Blumenkrantz
7e3c2b08ec
move buffered maximize/fullscreen for wl clients to occur before csd update
...
this ensures that all such operations calculate based on the correct csd state
2016-04-06 16:42:10 -04:00
Mike Blumenkrantz
992e04feb2
wayland client maximize/fullscreen cleanups
...
ref da74e690f0
2016-04-05 16:54:04 -04:00
Mike Blumenkrantz
da74e690f0
redo xdg shell to enforce double buffering of client-side configure serials
...
xdg shell configure states (maximize, fullscreen) return a client ack when the
client has applied the state. the ack, followed by the next surface commit,
indicates that the surface is ready to be transitioned into the configured state
2016-04-05 15:05:10 -04:00
Mike Blumenkrantz
d50a20f812
do not send shell configures for deleted wl clients
2016-04-05 15:04:35 -04:00
Mike Blumenkrantz
a99d505771
set WAYLAND_DEBUG=0 during wl compositor init
...
ensures that debug logs won't get both compositor and client output,
making the log impossible to read
2016-04-05 15:03:26 -04:00
Mike Blumenkrantz
e4960ad652
set ELM_ACCEL=gl upon successfully creating a gl wayland compositor
...
...successfully
ref 4aecb7ad14
2016-04-04 16:06:52 -04:00
Mike Blumenkrantz
ed6448eb21
send fake www data during maximize
2016-04-04 14:03:17 -04:00
Mike Blumenkrantz
687b5fb6b6
set maximizing flag during maximize resizing for wl clients
...
a helpful indicator for when to avoid potentially leaking positioning info
2016-04-04 14:02:39 -04:00
Mike Blumenkrantz
3f7e6dc359
wl popup surfaces should not receive focus on show if parent is not focused
...
fix T3339 harder
2016-04-04 12:51:29 -04:00
Mike Blumenkrantz
b9b9ed68b0
remove video child references from wl compositor
...
this is an x11-only thing
2016-04-04 12:51:20 -04:00
Mike Blumenkrantz
dead7646d4
delete internal wayland elm windows in wl client delete request callback
...
fix T2874
2016-04-01 16:48:50 -04:00