complete-computing-environment/exwm_should_ignore_plasma_n...

1.4 KiB

EXWM should ignore Plasma notifications

As of late, EXWM has been managing notifications, causing them to take over the active window, and stealing focus. Very not okay, we make sure notifications go unmanaged here. I also tried to extend this to make sure that Plasma's other windows aren't managed, but I gave up on that when it didn't work. They don't really do much to identify themselves, exwm--ewmh-state is updated after the floating and management check in exwm-manage--manage-window.

(unless (boundp 'exwm-manage-configurations) (setq exwm-manage-configurations nil))
(add-to-list 'exwm-manage-configurations
             '((and (equal exwm-class-name "plasmashell")
                    (memq xcb:Atom:_NET_WM_WINDOW_TYPE_NOTIFICATION exwm-window-type))
               managed nil))
(add-to-list 'exwm-manage-configurations
             '((and (equal exwm-class-name "plasmashell")
                    (memq xcb:Atom:_NET_WM_STATE_ABOVE exwm-window-type))))