mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
cursor: Don't trigger cursor modifiers if we have a constraint
We are probably playing a game and we don't want to be resizing the window when trying to duck/jump whatever. Signed-off-by: Joshua Ashton <joshua@froggi.es>
This commit is contained in:
parent
398cad692d
commit
95f583ba6b
1 changed files with 1 additions and 1 deletions
|
|
@ -451,7 +451,7 @@ cursor_button(struct wl_listener *listener, void *data)
|
||||||
/* handle alt + _press_ on view */
|
/* handle alt + _press_ on view */
|
||||||
struct wlr_input_device *device = seat->keyboard_group->input_device;
|
struct wlr_input_device *device = seat->keyboard_group->input_device;
|
||||||
uint32_t modifiers = wlr_keyboard_get_modifiers(device->keyboard);
|
uint32_t modifiers = wlr_keyboard_get_modifiers(device->keyboard);
|
||||||
if (modifiers & WLR_MODIFIER_ALT && event->state == WLR_BUTTON_PRESSED) {
|
if (modifiers & WLR_MODIFIER_ALT && event->state == WLR_BUTTON_PRESSED && !seat->current_constraint) {
|
||||||
handle_cursor_button_with_meta_key(view, event->button,
|
handle_cursor_button_with_meta_key(view, event->button,
|
||||||
server->seat.cursor->x, server->seat.cursor->y);
|
server->seat.cursor->x, server->seat.cursor->y);
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue