mirror of
https://github.com/swaywm/sway.git
synced 2026-04-17 06:46:32 -04:00
Inhibit floating modifier for tablet tool tip
This commit is contained in:
parent
31aad46c4f
commit
94cf26d3b7
1 changed files with 5 additions and 1 deletions
|
|
@ -247,8 +247,12 @@ static void handle_tablet_tool_tip(struct sway_seat *seat,
|
|||
bool is_floating_or_child = container_is_floating_or_child(cont);
|
||||
bool is_fullscreen_or_child = container_is_fullscreen_or_child(cont);
|
||||
struct wlr_keyboard *keyboard = wlr_seat_get_keyboard(seat->wlr_seat);
|
||||
struct sway_keyboard_shortcuts_inhibitor *sway_inhibitor =
|
||||
keyboard_shortcuts_inhibitor_get_for_focused_surface(seat);
|
||||
bool shortcuts_inhibited = sway_inhibitor && sway_inhibitor->inhibitor->active;
|
||||
bool mod_pressed = keyboard &&
|
||||
(wlr_keyboard_get_modifiers(keyboard) & config->floating_mod);
|
||||
(wlr_keyboard_get_modifiers(keyboard) & config->floating_mod)
|
||||
&& (!shortcuts_inhibited || config->floating_mod_inhibited);
|
||||
|
||||
// Handle beginning floating move
|
||||
if (is_floating_or_child && !is_fullscreen_or_child && mod_pressed) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue