<html>
<head>
<base href="https://bugzilla.gnome.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - GTK_WINDOW_POPUP cannot gain keyboard focus when using gtk_window_set_transient_for"
href="https://bugzilla.gnome.org/show_bug.cgi?id=781845#c2">Comment # 2</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - GTK_WINDOW_POPUP cannot gain keyboard focus when using gtk_window_set_transient_for"
href="https://bugzilla.gnome.org/show_bug.cgi?id=781845">bug 781845</a>
from <span class="vcard"><a href="page.cgi?id=describeuser.html&login=ofourdan%40redhat.com" title="Olivier Fourdan <ofourdan@redhat.com>"> <span class="fn">Olivier Fourdan</span></a>
</span></b>
<pre>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.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>