From 603f6d69cefb34acbe95db7ba55e211c5da54711 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sun, 3 Apr 2022 17:01:03 -0700 Subject: [PATCH] try harder to set the x,y position on x11 refs: #1794 --- window/src/os/x11/window.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/window/src/os/x11/window.rs b/window/src/os/x11/window.rs index 86a9abb42..5206fd6ed 100644 --- a/window/src/os/x11/window.rs +++ b/window/src/os/x11/window.rs @@ -962,6 +962,10 @@ impl XWindow { window_handle.set_title(name); window_handle.show(); + // Some window managers will ignore the x,y that we set during window + // creation, so we ask them again once the window is mapped + window_handle.set_window_position(ScreenPoint::new(x.into(), y.into())); + Ok(window_handle) } }