aboutsummaryrefslogtreecommitdiff
path: root/src/handlers/compositor.rs
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-12-30 08:48:05 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-12-30 20:12:37 +0300
commit8409107a5bb04980ea196a5d7095d5c34f6b2e4e (patch)
tree18a3fbcc3cab75a080f9f1d9c1ef2f06e55df237 /src/handlers/compositor.rs
parent9089c3fb0224a7f8d425a02fa299f6a5ea607b17 (diff)
downloadniri-8409107a5bb04980ea196a5d7095d5c34f6b2e4e.tar.gz
niri-8409107a5bb04980ea196a5d7095d5c34f6b2e4e.tar.bz2
niri-8409107a5bb04980ea196a5d7095d5c34f6b2e4e.zip
Implement default-window-height for scrolling windows
Diffstat (limited to 'src/handlers/compositor.rs')
-rw-r--r--src/handlers/compositor.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs
index ff927531..dec86929 100644
--- a/src/handlers/compositor.rs
+++ b/src/handlers/compositor.rs
@@ -97,10 +97,11 @@ impl CompositorHandler for State {
let toplevel = window.toplevel().expect("no X11 support");
- let (rules, width, is_full_width, output, workspace_id) =
+ let (rules, width, height, is_full_width, output, workspace_id) =
if let InitialConfigureState::Configured {
rules,
width,
+ height,
floating_width: _,
floating_height: _,
is_full_width,
@@ -118,10 +119,10 @@ impl CompositorHandler for State {
.and_then(|n| self.niri.layout.find_workspace_by_name(n))
.map(|(_, ws)| ws.id());
- (rules, width, is_full_width, output, workspace_id)
+ (rules, width, height, is_full_width, output, workspace_id)
} else {
error!("window map must happen after initial configure");
- (ResolvedWindowRules::empty(), None, false, None, None)
+ (ResolvedWindowRules::empty(), None, None, false, None, None)
};
// The GTK about dialog sets min/max size after the initial configure but
@@ -189,6 +190,7 @@ impl CompositorHandler for State {
mapped,
target,
width,
+ height,
is_full_width,
is_floating,
activate,