[weston test hack] A quick hack for testing surface transform inheritance

Pekka Paalanen ppaalanen at gmail.com
Mon Mar 4 07:30:53 PST 2013


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 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/shell.c b/src/shell.c
index 299c60e..0174fc0 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -1919,7 +1919,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.12.4



More information about the wayland-devel mailing list