Skip to content

Commit

Permalink
Update the window resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamoca42 committed Oct 2, 2024
1 parent 28197f5 commit f22f3be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/platform_impl/linux/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ impl Window {

let window_clone = window.clone();
glib::idle_add_local_once(move || {
window_clone.set_default_size(min_width, min_height);
window_clone.set_resizable(true);
window_clone.resize(width, height);
});

if attributes.maximized {
let maximize_process = util::WindowMaximizeProcess::new(window.clone(), attributes.resizable);
glib::idle_add_local_full(glib::Priority::HIGH_IDLE, move || {
glib::idle_add_local_full(glib::Priority::DEFAULT_IDLE, move || {
let mut maximize_process = maximize_process.borrow_mut();
maximize_process.next_step()
});
Expand Down Expand Up @@ -335,7 +335,7 @@ impl Window {
preferred_theme: RefCell::new(preferred_theme),
};

win.set_skip_taskbar(pl_attribs.skip_taskbar);
let _ = win.set_skip_taskbar(pl_attribs.skip_taskbar);

Ok(win)
}
Expand Down

0 comments on commit f22f3be

Please sign in to comment.