aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-04-04 12:08:36 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-04-04 16:04:18 +0300
commitfeae8c15e605a499961588cbb30d9192c1926079 (patch)
treea1f59186654c4425fd5ce302d91347fed0f39011 /src
parentb49f7dcb4d0973b74110a64ff5f905442cd2f7f1 (diff)
downloadniri-feae8c15e605a499961588cbb30d9192c1926079.tar.gz
niri-feae8c15e605a499961588cbb30d9192c1926079.tar.bz2
niri-feae8c15e605a499961588cbb30d9192c1926079.zip
input: Don't panic on resize edge None when window is Some
This can already happen with the tab indicator, it will happen more onwards.
Diffstat (limited to 'src')
-rw-r--r--src/input/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs
index a4508338..ba5d3dd3 100644
--- a/src/input/mod.rs
+++ b/src/input/mod.rs
@@ -2302,7 +2302,7 @@ impl State {
.niri
.layout
.resize_edges_under(output, pos_within_output)
- .unwrap();
+ .unwrap_or(ResizeEdge::empty());
if !edges.is_empty() {
// See if we got a double resize-click gesture.