Distinguish pop-up windows with X11 property
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
Tracking | Status | |
---|---|---|
firefox71 | --- | fixed |
People
(Reporter: astrothayne, Assigned: stransky)
Details
Attachments
(1 file)
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
- Open a popup window (for example: https://codepen.io/tmccombs/pen/bGbwLMe, or something that opens a pop-up authentication flow, such as with google oauth) in linux with X11
- Examine properties with xprop
Actual results:
There is nothing to distinguish a pop-up window from a regular window. For my use case, this means it is impossible for me to target pop-up windows with an i3 rule. In particular I would like to configure i3 to make pop-up windows floating, but afaict there is no way to do this with firefox. Instead, the pop-up fills my full screen, which is often a poor experience.
Expected results:
There should be some indication to the window manager that this is a pop-up. For example, chrome sets the WM_WINDOW_ROLE
property to "pop-up". Using a special value for the instance or class (WM_CLASS property) or setting the _NET_WM_WINDOW_TYPE to _NET_WM_WINDOW_TYPE_DIALOG would also work for my usecase at least.
Comment 1•5 years ago
|
||
Hi,
I'm setting the component in order to involve the development team in reviewing this.
Thanks!
Assignee | ||
Comment 2•5 years ago
|
||
Dupe of Bug 397251, let's solve it there.
Assignee | ||
Comment 3•5 years ago
|
||
Does not look like dupe of Bug 397251 after all, better to resolve it here. Do I understand correctly that you want to set WM_WINDOW_ROLE "pop-up" for all popup window?
Assignee | ||
Updated•5 years ago
|
Do I understand correctly that you want to set WM_WINDOW_ROLE "pop-up" for all popup window?
Yes
Assignee | ||
Comment 5•5 years ago
|
||
Assignee | ||
Comment 6•5 years ago
|
||
I think I understand you. But what you need is to set various role to toplevel window as the window from you example is toplevel type but acts as pop-up. The patch attached here does not fix your issue but gives all windows some initial wm_role.
Actual wm_role for each window needs to be set per-window, as it's for PIP window for instance, see:
the PIP window is created as toplevel/dialog but it uses:
WINDOW_TYPE = "Toolkit:PictureInPicture";
to set different WM_CLASS/WM_ROLE to it.
So what you need is to identify particular windows you're interested in and file bug against Firefox product for it. Feel free to CC me there and I can help to find particular component/reviewer.
Assignee | ||
Updated•5 years ago
|
Pushed by dluca@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b4231201173d
[Linux/Gtk] Set initial wm_role for windows, r=jhorak
Comment 8•5 years ago
|
||
bugherder |
Description
•