mirror of
https://github.com/swaywm/sway.git
synced 2024-11-18 22:19:14 +00:00
check floating mod for resizing windows, and dont send click
This commit is contained in:
parent
5a67628ad9
commit
dde8bfe728
|
@ -640,8 +640,12 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w
|
||||||
// Dont want pointer sent to window while dragging or resizing
|
// Dont want pointer sent to window while dragging or resizing
|
||||||
return (pointer_state.floating.drag || pointer_state.floating.resize);
|
return (pointer_state.floating.drag || pointer_state.floating.resize);
|
||||||
} else {
|
} else {
|
||||||
|
if (modifiers->mods & config->floating_mod) {
|
||||||
pointer_state.tiling.resize = pointer_state.r_held;
|
pointer_state.tiling.resize = pointer_state.r_held;
|
||||||
pointer_state.tiling.init_view = pointer;
|
pointer_state.tiling.init_view = pointer;
|
||||||
|
// Dont want pointer sent when resizing
|
||||||
|
return (pointer_state.tiling.resize);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return (pointer && pointer != focused);
|
return (pointer && pointer != focused);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue