-
-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
X.H.ManageHelpers: isNotification
predicate
#877
Conversation
Very similar to `isDialog`, `isNotification` checks for the `_NET_WM_WINDOW_TYPE_NOTIFICATION` value in the `_NET_WM_WINDOW_TYPE` property.
Those have to be tested manually, because there's no way to create a window in CI. |
I did test it manually. I am using it in my config. |
Thanks, and another thanks for fixing the typos in CHANGES! Out of curiosity, https://specifications.freedesktop.org/wm-spec/wm-spec-1.5.html#idm46485863906176 says that "This property is typically used on override-redirect windows" and these are normally unmanaged by xmonad, so I'm wondering what your use case is for this. Can you enlighten me pls? :-) |
Both Firefox and Chrome set it on notification windows, created on behalf of web sites ("Web Notifications"). For Chrome
For Firefox
Chrome provides a position via
I wonder if it is the This started happening rather recently, maybe a couple of weeks ago. |
What does |
Chrome definitely sets |
Actually they still recommend not going through a notification daemon, because they can't control drawing etc. if you do. |
Chrome:
Firefox:
|
Report that to the Firefox devs. |
It seems reasonable to search for an existing bug(s) and/or discussions. Any suggestions? I'm not particularly familiar with XWindow. |
The primary purpose of |
Thank you. I've filed "X11: Firefox does not set Override Redirect flag on notification windows": https://bugzilla.mozilla.org/show_bug.cgi?id=1883532 |
I should also mention that the EWMH specification was quoted earlier and said that notification windows should be |
Added a note about the EWMH spec suggestion to the bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1883532#c1 |
Description
Very similar to
isDialog
,isNotification
checks for the_NET_WM_WINDOW_TYPE_NOTIFICATION
value in the_NET_WM_WINDOW_TYPE
property.Checklist
I've read CONTRIBUTING.md
I've considered how to best test these changes (property, unit,
manually, ...) and concluded:
It is a rather trivial predicate. I do not see any examples of how to test those.
isDialog
has no tests either.So no tests :(
I updated the
CHANGES.md
file