mirror of
https://github.com/swaywm/sway.git
synced 2025-11-02 09:01:40 -05:00
Fix focusing topmost floating windows
Re-focus on the container on which the cursor hovers over. A special case is, if there are menus or other subsurfaces open in the focused container. It will prefer the focused container as long as there are subsurfaces. This commit starts caching the previous node as well as the previous x/y cursor position. Re-calculating the previous focused node by looking at the current state of the cursor position does not work, if the environment changes.
This commit is contained in:
parent
8bec0c90c7
commit
7727d54faf
3 changed files with 13 additions and 5 deletions
|
|
@ -10,6 +10,7 @@ struct sway_cursor {
|
|||
struct wlr_cursor *cursor;
|
||||
struct {
|
||||
double x, y;
|
||||
struct sway_node *node;
|
||||
} previous;
|
||||
struct wlr_xcursor_manager *xcursor_manager;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue