Skip to content

Commit

Permalink
x11: fix positioning with --position arg
Browse files Browse the repository at this point in the history
The child window should always have position 0,0.

This was a regression from commit 809bcc5.

Fixes #5395.
  • Loading branch information
jknockel committed May 9, 2024
1 parent 23e7c14 commit ccf4287
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions window/src/os/x11/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ccf4287

Please sign in to comment.