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:
Jasper St. Pierre 2014-11-26 15:30:04 -08:00
parent c5033616e9
commit 9fdf487da1

View File

@ -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);