Skip to content

Commit

Permalink
fix(window): remove non-functional logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamoca42 authored and gitbutler-client committed Sep 23, 2024
1 parent f044581 commit 342b42d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/platform_impl/linux/event_loop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ use super::{
};

use taskbar::TaskbarIndicator;

#[derive(Clone)]
pub struct EventLoopWindowTarget<T> {
/// Gdk display
Expand Down Expand Up @@ -294,7 +294,7 @@ impl<T: 'static> EventLoop<T> {
}
}
WindowRequest::Maximized(maximized) => {
if maximized && window.is_resizable() {
if maximized {
window.maximize();
} else {
window.unmaximize();
Expand Down
3 changes: 0 additions & 3 deletions src/platform_impl/linux/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,6 @@ impl Window {
window.resize(width, height);

if attributes.maximized && attributes.resizable {
if is_wayland {
window.set_resizable(true);
}
window.maximize();
}

Expand Down

0 comments on commit 342b42d

Please sign in to comment.