linux/x11: Add more debug info to error if opening window fails (#13364)
Release Notes: - N/A
This commit is contained in:
parent
abb46473c9
commit
c58a8f1a04
1 changed files with 4 additions and 1 deletions
|
@ -290,7 +290,10 @@ impl X11WindowState {
|
||||||
&win_aux,
|
&win_aux,
|
||||||
)
|
)
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.check()?;
|
.check().with_context(|| {
|
||||||
|
format!("CreateWindow request to X server failed. depth: {}, x_window: {}, visual_set.root: {}, bounds.origin.x.0: {}, bounds.origin.y.0: {}, bounds.size.width.0: {}, bounds.size.height.0: {}",
|
||||||
|
visual.depth, x_window, visual_set.root, bounds.origin.x.0 + 2, bounds.origin.y.0, bounds.size.width.0, bounds.size.height.0)
|
||||||
|
})?;
|
||||||
|
|
||||||
let reply = xcb_connection
|
let reply = xcb_connection
|
||||||
.get_geometry(x_window)
|
.get_geometry(x_window)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue