From ccf4287e817ee97aea82229e1484283c3d4039a8 Mon Sep 17 00:00:00 2001 From: Jeffrey Knockel Date: Thu, 9 May 2024 18:12:29 -0400 Subject: [PATCH] x11: fix positioning with --position arg The child window should always have position 0,0. This was a regression from commit 809bcc55. Fixes #5395. --- window/src/os/x11/window.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/window/src/os/x11/window.rs b/window/src/os/x11/window.rs index 38da2487698..8b434c32a89 100644 --- a/window/src/os/x11/window.rs +++ b/window/src/os/x11/window.rs @@ -1435,8 +1435,8 @@ impl XWindow { depth: conn.depth, wid: child_id, parent: window_id, - x: x.unwrap_or(0).try_into()?, - y: y.unwrap_or(0).try_into()?, + x: 0, + y: 0, width: width.try_into()?, height: height.try_into()?, border_width: 0,