[Wayland-bugs] [Bug 759161] New: wayland: dialog stacking without parents (RFC)
gtk+ (GNOME Bugzilla)
bugzilla at gnome.org
Tue Dec 8 01:40:21 PST 2015
https://bugzilla.gnome.org/show_bug.cgi?id=759161
Bug ID: 759161
Summary: wayland: dialog stacking without parents (RFC)
Classification: Platform
Product: gtk+
Version: 3.19.x
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: Backend: Wayland
Assignee: gtk-bugs at gtk.org
Reporter: ofourdan at redhat.com
QA Contact: gtk-bugs at gtk.org
CC: rob at robster.org.uk, wayland-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 316915
--> https://bugzilla.gnome.org/attachment.cgi?id=316915&action=edit
Attaching simple program to demonstrate the issue
Description:
Some applications use the type hint "dialog" without specifying a transient.
On X11, most fine window managers like mutter will treat the dialog window as a
"transient for the group" and keep the dialog above the other windows of the
same group.
On Wayland, xdg-shell features the set_parent() [1] method to specify that a
dialog is related to a parent window, but unfortunately there is no such thing
as "transient for group" in Wayland.
On wayland-devel mailing list [2], I was told that "the client must have
absolute final control, with no ambiguity, over the stacking order and
visibility of every surface" (unfortunately th reply does not show in the ML
archives so I cannot link it...).
So that means if we want to replicate the behaviour with dialogs without
transient (parent) in Wayland, we have to manage the stacking in the
applications, thus gtk+.
I reckon that would add some complexity to gtk+/gdk and its Wayland back-end.
So. is this something we want for gtk+?
Steps to reproduce:
1. Save and build the attach program
2. Run it on X11 and on Wayland
Actual result:
On X11, the dialog type window is kept above the two other windows.
On Wayland, all windows and can be raised independently.
Expected result:
Consistent stacking between Wayland and X11.
Additional info:
[1]
http://cgit.freedesktop.org/wayland/wayland-protocols/tree/unstable/xdg-shell/xdg-shell-unstable-v5.xml#n171
[2]
http://lists.freedesktop.org/archives/wayland-devel/2015-November/025726.html
--
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/20151208/27834f98/attachment.html>
More information about the wayland-bugs
mailing list