aboutsummaryrefslogtreecommitdiff
path: root/src/handlers
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-03-23 14:16:36 +0400
committerIvan Molodetskikh <yalterz@gmail.com>2024-03-23 15:45:44 +0400
commitf3f02aca2058dd7adc4d75707ded2b5d8887a258 (patch)
treeff5fdc1a81a5270f0f52a609c9f70a3afd79cf80 /src/handlers
parent021a2a1af771421e39a990bb1eac624e0ef274de (diff)
downloadniri-f3f02aca2058dd7adc4d75707ded2b5d8887a258.tar.gz
niri-f3f02aca2058dd7adc4d75707ded2b5d8887a258.tar.bz2
niri-f3f02aca2058dd7adc4d75707ded2b5d8887a258.zip
Lift output clones from queue_redraw()
Diffstat (limited to 'src/handlers')
-rw-r--r--src/handlers/compositor.rs12
-rw-r--r--src/handlers/layer_shell.rs4
-rw-r--r--src/handlers/xdg_shell.rs6
3 files changed, 11 insertions, 11 deletions
diff --git a/src/handlers/compositor.rs b/src/handlers/compositor.rs
index 19489f2c..e6f950a3 100644
--- a/src/handlers/compositor.rs
+++ b/src/handlers/compositor.rs
@@ -168,7 +168,7 @@ impl CompositorHandler for State {
self.maybe_warp_cursor_to_focus();
}
- self.niri.queue_redraw(output);
+ self.niri.queue_redraw(&output);
}
return;
}
@@ -206,7 +206,7 @@ impl CompositorHandler for State {
let unmapped = Unmapped::new(window);
self.niri.unmapped_windows.insert(surface.clone(), unmapped);
- self.niri.queue_redraw(output);
+ self.niri.queue_redraw(&output);
return;
}
@@ -216,7 +216,7 @@ impl CompositorHandler for State {
// Popup placement depends on window size which might have changed.
self.update_reactive_popups(&window, &output);
- self.niri.queue_redraw(output);
+ self.niri.queue_redraw(&output);
return;
}
@@ -230,7 +230,7 @@ impl CompositorHandler for State {
let output = output.clone();
window.on_commit();
self.niri.layout.update_window(&window);
- self.niri.queue_redraw(output);
+ self.niri.queue_redraw(&output);
return;
}
@@ -238,7 +238,7 @@ impl CompositorHandler for State {
self.popups_handle_commit(surface);
if let Some(popup) = self.niri.popups.find_popup(surface) {
if let Some(output) = self.output_for_popup(&popup) {
- self.niri.queue_redraw(output.clone());
+ self.niri.queue_redraw(&output.clone());
}
}
@@ -263,7 +263,7 @@ impl CompositorHandler for State {
for (output, state) in &self.niri.output_state {
if let Some(lock_surface) = &state.lock_surface {
if lock_surface.wl_surface() == surface {
- self.niri.queue_redraw(output.clone());
+ self.niri.queue_redraw(&output.clone());
break;
}
}
diff --git a/src/handlers/layer_shell.rs b/src/handlers/layer_shell.rs
index 117f14e1..bf1832fb 100644
--- a/src/handlers/layer_shell.rs
+++ b/src/handlers/layer_shell.rs
@@ -50,7 +50,7 @@ impl WlrLayerShellHandler for State {
None
};
if let Some(output) = output {
- self.niri.output_resized(output);
+ self.niri.output_resized(&output);
}
}
@@ -107,6 +107,6 @@ impl State {
}
drop(map);
- self.niri.output_resized(output);
+ self.niri.output_resized(&output);
}
}
diff --git a/src/handlers/xdg_shell.rs b/src/handlers/xdg_shell.rs
index 1c200ee5..db629171 100644
--- a/src/handlers/xdg_shell.rs
+++ b/src/handlers/xdg_shell.rs
@@ -391,12 +391,12 @@ impl XdgShellHandler for State {
self.maybe_warp_cursor_to_focus();
}
- self.niri.queue_redraw(output);
+ self.niri.queue_redraw(&output);
}
fn popup_destroyed(&mut self, surface: PopupSurface) {
if let Some(output) = self.output_for_popup(&PopupKind::Xdg(surface)) {
- self.niri.queue_redraw(output.clone());
+ self.niri.queue_redraw(&output.clone());
}
}
@@ -756,7 +756,7 @@ impl State {
self.niri.layout.update_window(&window);
if let Some(output) = output {
- self.niri.queue_redraw(output);
+ self.niri.queue_redraw(&output);
}
}
}