shell: Schedule repaint when moving a surface
authorKristian Høgsberg <krh@bitplanet.net>
Thu, 21 Jun 2012 16:06:22 +0000 (12:06 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Thu, 21 Jun 2012 16:32:23 +0000 (12:32 -0400)
It seems we used to rely on the repaint scheduled by the cursor motion.
But if there's no cursor, there's no cursor motion, so we need to schedule
our own repaint.

src/shell.c

index f7369f3..6333180 100644 (file)
@@ -782,6 +782,8 @@ move_grab_motion(struct wl_pointer_grab *grab,
 
        weston_surface_configure(es, dx, dy,
                                 es->geometry.width, es->geometry.height);
+
+       weston_compositor_schedule_repaint(es->compositor);
 }
 
 static void