mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-02 11:55:59 +01:00
Fix rootston seat button count
This commit is contained in:
parent
0a370c5298
commit
9e2d936b4a
1 changed files with 7 additions and 1 deletions
|
@ -166,6 +166,13 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (state == WLR_BUTTON_RELEASED &&
|
||||||
|
cursor->mode != ROOTS_CURSOR_PASSTHROUGH) {
|
||||||
|
cursor->mode = ROOTS_CURSOR_PASSTHROUGH;
|
||||||
|
if (seat->seat->pointer_state.button_count == 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t serial;
|
uint32_t serial;
|
||||||
if (is_touch) {
|
if (is_touch) {
|
||||||
|
@ -178,7 +185,6 @@ static void roots_cursor_press_button(struct roots_cursor *cursor,
|
||||||
int i;
|
int i;
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case WLR_BUTTON_RELEASED:
|
case WLR_BUTTON_RELEASED:
|
||||||
seat->cursor->mode = ROOTS_CURSOR_PASSTHROUGH;
|
|
||||||
if (!is_touch) {
|
if (!is_touch) {
|
||||||
roots_cursor_update_position(cursor, time);
|
roots_cursor_update_position(cursor, time);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue