[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
Fri Apr 28 15:55:50 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=781845
--- Comment #2 from Olivier Fourdan <ofourdan at redhat.com> ---
I don't think "popup" windows are supposed to be focused by default, not even
on X11 (where they translate as override-redirect, which are not focused). As a
matter of fact, that particular code snippet doesn't work on X11
(GDK_BACKEND=x11 ...) here.
For this particular use, I reckon a popover would be more appropriate though
and would do all that for you transparently, but I understand that might
require some changes in the code.
That being said, with the code as it is, under Wayland that translates as a
subsurface because you didn't setup a grab. But I doubt you'd want a grab or
popup for this intended use, I think.
Best imho is to simply add a "gtk_grab_add (popup);", see attached code.
--
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/20170428/8d879866/attachment-0001.html>
More information about the wayland-bugs
mailing list