mirror of
https://github.com/gwenhael-le-moine/sway-patched-tray-menu.git
synced 2024-12-28 22:23:42 +01:00
handlers: Don't switch output when mouse button is pressed.
(E.g. if the user is using a scrollbar at the edge of the screen then switching workspace would cancel the scroll.)
This commit is contained in:
parent
988a0bd67e
commit
1f08106b0a
1 changed files with 2 additions and 1 deletions
|
@ -362,7 +362,8 @@ static bool handle_pointer_motion(wlc_handle handle, uint32_t time, const struct
|
|||
//
|
||||
// Since this doesn't currently support moving windows between outputs we
|
||||
// don't do the switch if the pointer is in a mode.
|
||||
if (config->seamless_mouse && !pointer_state.mode) {
|
||||
if (config->seamless_mouse && !pointer_state.mode &&
|
||||
!pointer_state.left.held && !pointer_state.right.held && !pointer_state.scroll.held) {
|
||||
swayc_t *output = swayc_active_output();
|
||||
|
||||
// TODO: This implementation is naïve: We assume all outputs are
|
||||
|
|
Loading…
Reference in a new issue