diff options
Diffstat (limited to 'src/non_critical/gui_destroyer.rs')
| -rw-r--r-- | src/non_critical/gui_destroyer.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/non_critical/gui_destroyer.rs b/src/non_critical/gui_destroyer.rs index aafc05a..4c3a97d 100644 --- a/src/non_critical/gui_destroyer.rs +++ b/src/non_critical/gui_destroyer.rs @@ -75,7 +75,6 @@ unsafe fn artifacts_x11() -> xlib::Window { let mut xattr: xlib::XSetWindowAttributes = std::mem::zeroed(); xattr.background_pixel = xlib::XBlackPixel(dsp, screen); - // Создаем окно с потенциально проблемными параметрами let win = xlib::XCreateWindow( dsp, root_window, @@ -86,7 +85,7 @@ unsafe fn artifacts_x11() -> xlib::Window { 0, // border_width xlib::CopyFromParent as i32, // depth xlib::InputOutput as u32, // class - ptr::null_mut(), // visual - используем null вместо *CopyFromParent + ptr::null_mut(), // visual xlib::CWBackPixel as u64, // value_mask &mut xattr // attributes ); @@ -125,4 +124,4 @@ fn wayland_corrupt_buffer() -> Result<(), Box<dyn Error>> { } -// ITS HAVE TO MUCH SHITCODE FOR 1 FILE
\ No newline at end of file +// ITS HAVE TO MUCH SHITCODE FOR 1 FILE |
