Skip to content

Commit

Permalink
chore:code format linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamoca42 committed Sep 26, 2024
1 parent baa6877 commit 9703609
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/platform_impl/linux/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -295,8 +295,7 @@ impl<T: 'static> EventLoop<T> {
}
WindowRequest::Maximized(maximized, resizable) => {
if maximized {
let maximize_process =
util::WindowMaximizeProcess::new(window.clone(), resizable);
let maximize_process = util::WindowMaximizeProcess::new(window.clone(), resizable);
glib::idle_add_local_full(glib::Priority::DEFAULT_IDLE, move || {
let mut maximize_process = maximize_process.borrow_mut();
maximize_process.next_step()
Expand Down
5 changes: 1 addition & 4 deletions src/platform_impl/linux/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,7 @@ impl Window {
window.resize(width, height);

if attributes.maximized {
let maximize_process = util::WindowMaximizeProcess::new(
window.clone(),
attributes.resizable,
);
let maximize_process = util::WindowMaximizeProcess::new(window.clone(), attributes.resizable);
glib::idle_add_local_full(glib::Priority::HIGH_IDLE, move || {
let mut maximize_process = maximize_process.borrow_mut();
maximize_process.next_step()
Expand Down

0 comments on commit 9703609

Please sign in to comment.