firefox doesn't set WM_WINDOW_ROLE property
Categories
(Core :: Widget: Gtk, enhancement, P3)
Tracking
()
People
(Reporter: mattias.fliesberg, Assigned: stransky)
References
Details
Comment 1•9 years ago
|
||
Comment 2•9 years ago
|
||
![]() |
||
Comment 3•7 years ago
|
||
![]() |
||
Updated•7 years ago
|
Assignee | ||
Updated•5 years ago
|
I would like firefox to set WM_WINDOW_ROLE to a special value for pop-up windows, so that I can target those with rules in i3.
Assignee | ||
Comment 6•5 years ago
|
||
Looks like we can use gtk_window_set_role() for it.
Assignee | ||
Comment 7•5 years ago
|
||
nsWindow::SetWindowClass() is used to set the class which is called by nsXULWindow::SyncAttributesToWidget(), WINDOWTYPE_ATTRIBUTE is used.
Unfortunately the WINDOWTYPE_ATTRIBUTE is set only for some windows (some popups and so on) and not for the toplevel window.
For instance PIP player uses that:
https://hg.mozilla.org/integration/autoland/file/969b3828a301038c57540d8bffb51539132d393c/toolkit/components/pictureinpicture/PictureInPicture.jsm
Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Comment 8•5 years ago
|
||
(In reply to Thayne from comment #5)
I would like firefox to set WM_WINDOW_ROLE to a special value for pop-up windows, so that I can target those with rules in i3.
Do you mean all firefox popups should have the same role or do you want a different role for different popups?
Comment 10•5 years ago
|
||
I'm trying out sway (wayland equivalent of i3) and realized that setting WM_WINDOW_ROLE will not fix this problem in wayland. Unfortunately I don't know of a good solution for this problem in wayland/sway, since afaik, there isn't an equivalent of WM_WINDOW_ROLE in xdg-shell.
Updated•2 years ago
|
Description
•