1
1
mirror of https://github.com/wez/wezterm.git synced 2024-08-16 17:50:28 +03:00

x11: fix positioning with --position arg

The child window should always have position 0,0.

This was a regression from commit 809bcc55.

Fixes #5395.
This commit is contained in:
Jeffrey Knockel 2024-05-09 18:12:29 -04:00 committed by Wez Furlong
parent 23e7c14a98
commit 814857cd69

View File

@ -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,