[TEST HACK weston] A quick hack for testing surface transform inheritance

Pekka Paalanen ppaalanen at gmail.com
Tue Dec 18 04:01:20 PST 2012


When you apply this patch, you can observe the surface transform
inheritance in action like this:

1. open any toytoolkit application that has decorations, e.g. cliptest
2. open a menu from the title with the right mouse button, and leave it
open
3. use the surface move hotkey Meta+LeftMouseButtonDrag to move the
cliptest main window (do not touch the menu)

Without transform inheritance, the menu will be left behind.
With transform inheritance, the menu will stick like glued to the main
window.

Try rotating the main window with Meta+RightMouseButtonDrag, too!
---
 src/shell.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/shell.c b/src/shell.c
index edd009d..ef8e6d6 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1896,7 +1896,7 @@ shell_map_popup(struct shell_surface *shsurf)
 	/* We don't require the grab to still be active, but if another
 	 * grab has started in the meantime, we end the popup now. */
 	if (seat->pointer->grab_serial == shsurf->popup.serial) {
-		wl_pointer_start_grab(seat->pointer, &shsurf->popup.grab);
+		/*wl_pointer_start_grab(seat->pointer, &shsurf->popup.grab);*/
 	} else {
 		wl_shell_surface_send_popup_done(&shsurf->resource);
 	}
-- 
1.7.8.6



More information about the wayland-devel mailing list