[Wayland-bugs] [Bug 756780] wayland: Fix GtkTreeView's search window
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Wed Oct 21 19:40:35 PDT 2015
https://bugzilla.gnome.org/show_bug.cgi?id=756780
--- Comment #18 from Jonas Ã…dahl <jadahl at gmail.com> ---
(In reply to Matthias Clasen from comment #8)
> Needed this fixup on top to avoid critical warnings.
Yes, I have it amended into the commit locally, but forgot to upload again
after discovering it.
(In reply to Matthias Clasen from comment #16)
> Review of attachment 313620 [details] [review]:
>
> did you look if anything else is using this window type, and will be ok with
> this change ?
Initially I searched the gtk+ tree, and it seemed safe. Now I did a more broad
search, and it seems to be assumed to be a regular toplevel window sometimes,
and the couple of places I saw this it was a GDK_WINDOW_TOPLEVEL). I think to
limit mapping it as a subsurface only if the window type is GDK_WINDOW_POPUP
instead. If we want to be extra safe, I assume we can use the private
set-subsurface API, but I wonder if any client using an utility window as a
popup expects the grab behaviour that comes with a xdg_popup.
Would could also change the type hint in GtkTreeView to TOOLTIP, as it is a
no-input window. This is what I did initially, but it seemed odd to make it a
"tooltip" when it was clearly not one. Is there any expected semantics of an
utility type hint?
(In reply to Matthias Clasen from comment #17)
> Review of attachment 313621 [details] [review]:
>
> @@ +11168,3 @@
> gtk_window_set_modal (GTK_WINDOW (tree_view->priv->search_window), TRUE);
> + gtk_window_set_transient_for (GTK_WINDOW (tree_view->priv->search_window),
> + GTK_WINDOW (toplevel));
>
> Is this related to the key event handling changes ? looks unrelated to me.
In order to map the window as a subsurface we need to make it transient to the
parent. Without this, we'd fail to map.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/wayland-bugs/attachments/20151022/b263c6d4/attachment.html>
More information about the wayland-bugs
mailing list