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

@ -161,6 +161,7 @@ impl XdgShellHandler 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() {
@ -183,7 +184,7 @@ impl XdgShellHandler for State {
let seat = Seat::from_resource(&seat).unwrap();
let mut shell = self.common.shell.write().unwrap();
if let Some((grab, focus)) =
shell.resize_request(surface.wl_surface(), &seat, serial, edges.into())
shell.resize_request(surface.wl_surface(), &seat, serial, edges.into(), true)
{
std::mem::drop(shell);
if grab.is_touch_grab() {