X11: Fix black flashes on boot and while resizing (#13002)
Release Notes: - N/A
This commit is contained in:
@@ -256,7 +256,6 @@ impl X11WindowState {
|
|||||||
};
|
};
|
||||||
|
|
||||||
let win_aux = xproto::CreateWindowAux::new()
|
let win_aux = xproto::CreateWindowAux::new()
|
||||||
.background_pixel(x11rb::NONE)
|
|
||||||
// https://stackoverflow.com/questions/43218127/x11-xlib-xcb-creating-a-window-requires-border-pixel-if-specifying-colormap-wh
|
// https://stackoverflow.com/questions/43218127/x11-xlib-xcb-creating-a-window-requires-border-pixel-if-specifying-colormap-wh
|
||||||
.border_pixel(visual_set.black_pixel)
|
.border_pixel(visual_set.black_pixel)
|
||||||
.colormap(colormap)
|
.colormap(colormap)
|
||||||
@@ -335,7 +334,6 @@ impl X11WindowState {
|
|||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
xcb_connection.map_window(x_window).unwrap();
|
|
||||||
xcb_connection.flush().unwrap();
|
xcb_connection.flush().unwrap();
|
||||||
|
|
||||||
let raw = RawWindow {
|
let raw = RawWindow {
|
||||||
@@ -366,6 +364,7 @@ impl X11WindowState {
|
|||||||
size: query_render_extent(xcb_connection, x_window),
|
size: query_render_extent(xcb_connection, x_window),
|
||||||
transparent: params.window_background != WindowBackgroundAppearance::Opaque,
|
transparent: params.window_background != WindowBackgroundAppearance::Opaque,
|
||||||
};
|
};
|
||||||
|
xcb_connection.map_window(x_window).unwrap();
|
||||||
|
|
||||||
Ok(Self {
|
Ok(Self {
|
||||||
client,
|
client,
|
||||||
|
|||||||
Reference in New Issue
Block a user