<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#c6">Comment # 6</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>Created <span class=""><a href="attachment.cgi?id=350894" name="attach_350894" title="temp window as xdg_popup">attachment 350894</a> <a href="attachment.cgi?id=350894&action=edit" title="temp window as xdg_popup">[details]</a></span>
temp window as xdg_popup
(In reply to ipun from <a href="show_bug.cgi?id=781845#c5">comment #5</a>)
<span class="quote">> 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.</span >
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.</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>