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

@ -481,7 +481,7 @@ impl XwmHandler for State {
let mut shell = self.common.shell.write().unwrap();
let seat = shell.seats.last_active().clone();
if let Some((grab, focus)) =
shell.resize_request(&wl_surface, &seat, None, resize_edge.into())
shell.resize_request(&wl_surface, &seat, None, resize_edge.into(), true)
{
std::mem::drop(shell);
if grab.is_touch_grab() {
@ -513,6 +513,7 @@ impl XwmHandler for State {
&self.common.config,
&self.common.event_loop_handle,
&self.common.xdg_activation_state,
true,
) {
std::mem::drop(shell);
if grab.is_touch_grab() {