mirror of
https://github.com/swaywm/sway.git
synced 2025-11-11 13:29:51 -05:00
sends hidden views to back, visible view to front
This commit is contained in:
parent
ffb3458322
commit
4077238782
3 changed files with 7 additions and 3 deletions
|
|
@ -238,8 +238,8 @@ static bool handle_key(wlc_handle view, uint32_t time, const struct wlc_modifier
|
|||
}
|
||||
|
||||
static bool handle_pointer_motion(wlc_handle view, uint32_t time, const struct wlc_origin *origin) {
|
||||
static wlc_handle prev_view = 0;
|
||||
mouse_origin = *origin;
|
||||
static wlc_handle prev_view = -1;
|
||||
if (config->focus_follows_mouse && prev_view != view) {
|
||||
focus_pointer();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue