<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#c3">Comment # 3</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=ipun%40redhat.com" title="ipun@redhat.com">ipun@redhat.com</a>
</span></b>
<pre>(In reply to Olivier Fourdan from <a href="show_bug.cgi?id=781845#c2">comment #2</a>)
<span class="quote">> 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.</span >
Thanks Olivier,
Im getting a bit closer to what I need. Although it was able to grab the focus
with gtk_grab_add(), I am not able to lose the focus. I would like the popup to
be able to lose/gain focus freely, just that I'd like it to have the ability to
focus (and focus on default). The popup should initially grab focus on showing,
but able to lose focus if clicked on parent window, etc.
The way we implemented it in x11 was using an override-redirect implementation,
which we are trying to translate over to Wayland.</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>