add WINDOW_TYPE_NOTIFICATION to floating list (#6017)

as explained in this discussion:
https://github.com/i3/i3/discussions/5966#discussioncomment-8961295
This commit is contained in:
Junicchi
2024-05-16 10:50:06 +03:00
committed by GitHub
parent 6094944345
commit 1597ec27ee
2 changed files with 2 additions and 0 deletions

View File

@ -0,0 +1 @@
float notification windows by default

View File

@ -466,6 +466,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
if (xcb_reply_contains_atom(type_reply, A__NET_WM_WINDOW_TYPE_DIALOG) ||
xcb_reply_contains_atom(type_reply, A__NET_WM_WINDOW_TYPE_UTILITY) ||
xcb_reply_contains_atom(type_reply, A__NET_WM_WINDOW_TYPE_TOOLBAR) ||
xcb_reply_contains_atom(type_reply, A__NET_WM_WINDOW_TYPE_NOTIFICATION) ||
xcb_reply_contains_atom(type_reply, A__NET_WM_WINDOW_TYPE_SPLASH) ||
xcb_reply_contains_atom(state_reply, A__NET_WM_STATE_MODAL) ||
(cwindow->max_width > 0 && cwindow->max_height > 0 &&