[Wayland-bugs] [Bug 781845] GTK_WINDOW_POPUP cannot gain keyboard focus when using gtk_window_set_transient_for

gtk+ (GNOME Bugzilla) bugzilla at gnome.org
Tue May 2 16:01:40 UTC 2017


https://bugzilla.gnome.org/show_bug.cgi?id=781845

--- Comment #6 from Olivier Fourdan <ofourdan at redhat.com> ---
Created attachment 350894
  --> https://bugzilla.gnome.org/attachment.cgi?id=350894&action=edit
temp window as xdg_popup

(In reply to ipun from comment #5)
> I briefly looked into xdg_popup, but I am not 100% clear on how to use it
> with GTK. The use case is pretty much what you described (a menu). As it is
> not feasible for us to migrate over to popovers at this time, I would like
> to know how i could use xdg_popup with GTK in order to get the same outcome.

Well, gdk will automatically use an xdg_popup for a temp window if the required
conditions are met, i.e. when a grab is available.

I have attached a new code sample that does that. Click in the main window to
show the popup with input focus.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/wayland-bugs/attachments/20170502/1d5ab373/attachment.html>


More information about the wayland-bugs mailing list