Popups at cursor position (#589)

* Popups at cursor position

Provided a fix for opening popups(such as Unity color picker/material selector) at cursor position and therefore not disappearing when moving the pointer towards them.

* xwayland only edit

Mentioned that this fix is needed for xwayland apps only.
This commit is contained in:
nnra6864 2024-04-10 23:39:36 +02:00 committed by GitHub
parent df2636b7ec
commit 26239e23e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -342,7 +342,7 @@ keybinds and passes them on to the vm.
Then, pressing `SUPER + Escape` will leave that mode. Then, pressing `SUPER + Escape` will leave that mode.
### Some of my drop-down/pop-up windows in apps disappear ### Some of my drop-down/pop-up windows in apps disappear/don't open at cursor position
In some apps like Steam or VSCode, the drop-down windows may disappear if you In some apps like Steam or VSCode, the drop-down windows may disappear if you
hover over them. This can be fixed with window rules. hover over them. This can be fixed with window rules.
@ -374,6 +374,15 @@ If the pop-up disappears immediately, you can use:
windowrulev2 = minsize 1 1, title:^(TITLE)$, class:^(CLASS)$ windowrulev2 = minsize 1 1, title:^(TITLE)$, class:^(CLASS)$
``` ```
If the pop-up doesn't open at the cursor position, try the following:
```ini
windowrulev2 = move onscreen cursor, title:^(TITLE)$, class:^(CLASS)$
```
This is required for apps running under xwayland only and there is usually no need
to use the first solution if opening at the cursor position.
### Steam's file picker no worky ### Steam's file picker no worky
On instances where you have a steam library on another drive that you have to On instances where you have a steam library on another drive that you have to