Track if a move or resize request is client initiated

This commit is contained in:
João Capucho 2024-08-19 16:01:04 +01:00 committed by Victoria Brekenfeld
parent 3625454420
commit 3c24934f48
7 changed files with 18 additions and 10 deletions

View file

@ -622,6 +622,7 @@ impl CosmicStack {
&state.common.config,
&state.common.event_loop_handle,
&state.common.xdg_activation_state,
false,
);
if let Some((grab, focus)) = res {
if grab.is_touch_grab() {
@ -710,6 +711,7 @@ impl Program for CosmicStackInternal {
&state.common.config,
&state.common.event_loop_handle,
&state.common.xdg_activation_state,
false,
);
if let Some((grab, focus)) = res {
if grab.is_touch_grab() {
@ -1290,6 +1292,7 @@ impl PointerTarget<State> for CosmicStack {
Focus::ResizeRight => ResizeEdge::RIGHT,
Focus::Header => unreachable!(),
},
false,
);
if let Some((grab, focus)) = res {
if grab.is_touch_grab() {
@ -1356,6 +1359,7 @@ impl PointerTarget<State> for CosmicStack {
&state.common.config,
&state.common.event_loop_handle,
&state.common.xdg_activation_state,
false,
);
if let Some((grab, focus)) = res {
if grab.is_touch_grab() {