This commit is contained in:
twinaphex 2019-01-09 01:01:03 +01:00
parent cdc0a79508
commit 01b2b9c3a6

View File

@ -337,7 +337,8 @@ static void pointer_handle_button(void *data,
{
wl->input.mouse.left = true;
if (BIT_GET(wl->input.key_state, KEY_LEFTALT)) {
if (BIT_GET(wl->input.key_state, KEY_LEFTALT))
{
if (wl->xdg_toplevel)
xdg_toplevel_move(wl->xdg_toplevel, wl->seat, serial);
else if (wl->zxdg_toplevel)
@ -346,7 +347,6 @@ static void pointer_handle_button(void *data,
wl_shell_surface_move(wl->shell_surf, wl->seat, serial);
}
}
}
else if (button == BTN_RIGHT)
wl->input.mouse.right = true;
else if (button == BTN_MIDDLE)