Clicking through notifications when mouse is being grabbed
Issue description
In some games (such as Counter-Strike: Source with Raw Input enabled) the mouse is grabbed in such a way that the mouse is still moving only within the bounds of the window but the cursor is hidden, unlike some others where the cursor is constantly stuck to the middle.
This causes issues when notifications are on top of the window, as when your cursor just happens to be above the notification when clicking in-game it blocks mouse clicks and neither the game detects it nor does dunst (so it doesn't even get dismissed), and this can be very frustrating and detrimental to your gameplay.
Is this able to be fixed in dunst somehow? The only ways I can get around this currently are making the window size smaller and moving it away from the notification area, or disabling notifications entirely (but of course, I'd rather see them), neither of which are preferable.
Installation info
- Version:
Dunst - A customizable and lightweight notification-daemon 1.9.0 (2022-06-27) - Install type:
package, Gentoo - Window manager / Desktop environment:
Openbox
I think this isn't so easy to solve. We could maybe not show the mouse pointer if it was already invisible before it entered the notification, but that would probably be bad for people just watching a video
My wording mightn't have been that good
The cursor is always invisible in-game anyway even when it's in the same position as a notification, but mouse events won't go to the game or dunst when it is
So for example, you won't be able to shoot in-game, nor will dunst dismiss the notification (or whatever the left button is bound to)
I don't know of a way this can be easily fixed. You could try to pause dunst with dunstctl pause while the game is running, but you'll have to figure out how to start and stop that.