diff options
| author | ArcaneDev <alive6863@gmail.com> | 2025-11-04 22:36:32 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-04 22:36:32 +0300 |
| commit | 114dcd68b7da3965cf0a7f3975297a558c51d9b5 (patch) | |
| tree | 53b2c29bb308083c642762c6eac058c6593d1957 /src | |
| parent | 99fc0b49b760f6cf61ba1050c9aa92f52480489a (diff) | |
Remove comment regarding window creation parameters
Removed comment in Russian about problematic window parameters.
Diffstat (limited to 'src')
| -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 |
