mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
pointer: Actually do change the focus during window ops
Whenever the compositor takes a grab, we're supposed send leave/enter events to the current surface, which makes sense, as the compositor has stolen the pointer from the client. I forget why I added the special case in the first place, but it's likely a bug that's since been fixed. This actually fixes a bug: it prevents the need to double-click on X11 application titlebars when grabbing them.
This commit is contained in:
parent
c5033616e9
commit
9fdf487da1
@ -73,9 +73,6 @@ sync_focus_surface (MetaWaylandPointer *pointer)
|
||||
switch (display->event_route)
|
||||
{
|
||||
case META_EVENT_ROUTE_WINDOW_OP:
|
||||
/* Don't update the focus surface while we're grabbing a window. */
|
||||
return;
|
||||
|
||||
case META_EVENT_ROUTE_COMPOSITOR_GRAB:
|
||||
/* The compositor has a grab, so remove our focus... */
|
||||
meta_wayland_pointer_set_focus (pointer, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user