From dde8bfe72838b2a08a6367a3bc26fde528c6dafe Mon Sep 17 00:00:00 2001 From: taiyu Date: Fri, 21 Aug 2015 10:34:37 -0700 Subject: [PATCH] check floating mod for resizing windows, and dont send click --- sway/handlers.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/sway/handlers.c b/sway/handlers.c index 07247b1c..3dda3e43 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -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 return (pointer_state.floating.drag || pointer_state.floating.resize); } else { - pointer_state.tiling.resize = pointer_state.r_held; - pointer_state.tiling.init_view = pointer; + if (modifiers->mods & config->floating_mod) { + pointer_state.tiling.resize = pointer_state.r_held; + pointer_state.tiling.init_view = pointer; + // Dont want pointer sent when resizing + return (pointer_state.tiling.resize); + } } return (pointer && pointer != focused); } else {