dunst icon indicating copy to clipboard operation
dunst copied to clipboard

Clicking through notifications when mouse is being grabbed

Open dakrk opened this issue 3 years ago • 3 comments

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

dakrk avatar Jul 22 '22 18:07 dakrk

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

fwsmit avatar Jul 22 '22 21:07 fwsmit

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)

dakrk avatar Jul 22 '22 22:07 dakrk

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.

fwsmit avatar Jul 29 '22 16:07 fwsmit