sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit b359429e90294fea057446c92db03a5adb622b96
parent 87aa82800526ad9e9bc76e4c769061a3ef1e17e3
Author: taiyu <taiyu.len@gmail.com>
Date:   Fri, 28 Aug 2015 12:30:59 -0700

fix issue #140, dont set pointer mode if no floating_mod

Diffstat:
Msway/handlers.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/sway/handlers.c b/sway/handlers.c @@ -430,8 +430,10 @@ static bool handle_pointer_button(wlc_handle view, uint32_t time, const struct w return EVENT_PASSTHROUGH; } - // set pointer mode - pointer_mode_set(button, !(modifiers->mods ^ config->floating_mod)); + // set pointer mode only if floating mod has been set + if(config->floating_mod) { + pointer_mode_set(button, !(modifiers->mods ^ config->floating_mod)); + } // Return if mode has been set if (pointer_state.mode) {