mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-31 05:40:04 -04:00
X11: Fix flickering when resizing with transparency enabled (#546)
* X11: Fix flickering when resizing with transparency enabled * X11: Fix with_override_redirect
This commit is contained in:
committed by
GitHub
parent
bf413ecb83
commit
19dd961752
@@ -102,19 +102,12 @@ impl UnownedWindow {
|
||||
| ffi::ButtonReleaseMask
|
||||
| ffi::PointerMotionMask;
|
||||
swa.border_pixel = 0;
|
||||
if window_attrs.transparent {
|
||||
swa.background_pixel = 0;
|
||||
}
|
||||
swa.override_redirect = 0;
|
||||
swa.override_redirect = pl_attribs.override_redirect as c_int;
|
||||
swa
|
||||
};
|
||||
|
||||
let mut window_attributes = ffi::CWBorderPixel | ffi::CWColormap | ffi::CWEventMask;
|
||||
|
||||
if window_attrs.transparent {
|
||||
window_attributes |= ffi::CWBackPixel;
|
||||
}
|
||||
|
||||
if pl_attribs.override_redirect {
|
||||
window_attributes |= ffi::CWOverrideRedirect;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user