Files
gtk3/gdk
Jasper St. Pierre 75ecdf50a3 wayland: Fix GtkMenuButton popups in a terrible, hacky way
Since you can't take grabs on unmapped windows, GtkMenu takes a grab on
the menu in a convoluted way: it first grabs another window, shows the
menu window, and then transfers the grab over to the GtkMenu widget.

For normal menubars, this is perfectly fine, as the first window it grabs
is our toplevel, and that gets picked up in our transient path.  For
GtkMenuButton or other spurious uses of gtk_menu_popup, it creates a new
temporary input-only window which it takes the grab on, known as the "grab
transfer window". Since this window isn't a transient-for of our new menu
widget window, the grab isn't noticed when we go to show it, and thus the
menu ends up as a new toplevel.

Add a special hack to GtkMenu and the Wayland backend which lets us notice
this "grab transfer window", and include it in our grab finding path.

It's sort of terrible to have to hack up the widgets instead of just the
backend, but the alternative would be an entirely new window type which is
managed correctly by GDK. I don't want to write that.
2014-05-15 18:02:45 -04:00
..
2014-03-26 20:09:30 -04:00
2014-03-26 20:09:30 -04:00
2013-02-25 10:54:32 +01:00
2014-04-04 01:25:14 -04:00
2014-01-12 22:25:19 -05:00
2014-02-19 18:56:05 -05:00
2014-02-07 13:32:47 -05:00
2014-05-13 02:39:59 -04:00
2014-01-20 18:27:28 -05:00
2014-02-07 13:06:10 -05:00
2013-04-19 20:11:39 -04:00
2014-02-05 15:08:42 -05:00
2013-04-19 20:11:38 -04:00
2013-04-19 20:11:38 -04:00
2014-02-19 18:56:05 -05:00
2014-02-07 13:32:47 -05:00
2014-02-07 13:06:10 -05:00
2014-02-19 18:56:05 -05:00
2014-03-28 23:51:52 -04:00
2014-04-23 23:25:07 -04:00
2014-02-07 13:32:47 -05:00
2013-07-17 17:52:19 -04:00
2014-04-01 11:50:35 +00:00