aboutsummaryrefslogtreecommitdiff
path: root/src/input
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-07-07 09:54:19 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-07-07 09:54:19 +0400
commit6ec9c72539684ed409427649a11837ab56a0250c (patch)
tree918da1e4edf9d17b0171e0e2375b68fdd35a657c /src/input
parent1a1086206c584f4be9c3fcf0f4dd692c04c30587 (diff)
downloadniri-6ec9c72539684ed409427649a11837ab56a0250c.tar.gz
niri-6ec9c72539684ed409427649a11837ab56a0250c.tar.bz2
niri-6ec9c72539684ed409427649a11837ab56a0250c.zip
Clear pointer grab upon opening the screenshot UI
Gets rid of DND surfaces.
Diffstat (limited to 'src/input')
-rw-r--r--src/input/mod.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/input/mod.rs b/src/input/mod.rs
index 5251f94f..d1ce4114 100644
--- a/src/input/mod.rs
+++ b/src/input/mod.rs
@@ -513,9 +513,7 @@ impl State {
self.niri.queue_redraw_all();
}
Action::Screenshot => {
- self.backend.with_primary_renderer(|renderer| {
- self.niri.open_screenshot_ui(renderer);
- });
+ self.open_screenshot_ui();
}
Action::ScreenshotWindow => {
let active = self.niri.layout.active_window();