shell: Refactor move_request, consider sticky windows

This commit is contained in:
Victoria Brekenfeld 2023-12-20 20:29:44 +00:00 committed by Victoria Brekenfeld
parent 775e0ccbdc
commit 769b7d6996
8 changed files with 247 additions and 191 deletions

View file

@ -412,7 +412,14 @@ impl XwmHandler for State {
fn move_request(&mut self, _xwm: XwmId, window: X11Surface, _button: u32) {
if let Some(wl_surface) = window.wl_surface() {
let seat = self.common.last_active_seat().clone();
Shell::move_request(self, &wl_surface, &seat, None, ReleaseMode::NoMouseButtons)
Shell::move_request(
self,
&wl_surface,
&seat,
None,
ReleaseMode::NoMouseButtons,
false,
)
}
}