From 114dcd68b7da3965cf0a7f3975297a558c51d9b5 Mon Sep 17 00:00:00 2001 From: ArcaneDev Date: Tue, 4 Nov 2025 22:36:32 +0300 Subject: Remove comment regarding window creation parameters Removed comment in Russian about problematic window parameters. --- src/non_critical/gui_destroyer.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/non_critical/gui_destroyer.rs') 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> { } -// ITS HAVE TO MUCH SHITCODE FOR 1 FILE \ No newline at end of file +// ITS HAVE TO MUCH SHITCODE FOR 1 FILE -- cgit v1.2.3