compositor: Dont repick for grabbed surfaces
authorKristian Høgsberg <krh@bitplanet.net>
Wed, 12 Oct 2011 04:36:54 +0000 (00:36 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 12 Oct 2011 04:36:54 +0000 (00:36 -0400)
compositor/compositor.c

index ff7ae3e..d2e8ce7 100644 (file)
@@ -351,6 +351,8 @@ wlsc_compositor_repick(struct wlsc_compositor *compositor)
 
        time = wlsc_compositor_get_time();
        wl_list_for_each(device, &compositor->input_device_list, link) {
+               if (device->input_device.grab)
+                       continue;
                surface = pick_surface(&device->input_device, &sx, &sy);
                wl_input_device_set_pointer_focus(&device->input_device,
                                                  &surface->surface,