mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-22 02:01:55 +07:00
layout: Return bool from activate_window()
Avoid an extra has_window() call.
This commit is contained in:
@@ -840,8 +840,8 @@ impl<W: LayoutElement> Workspace<W> {
|
||||
self.scrolling.scroll_amount_to_activate(window)
|
||||
}
|
||||
|
||||
pub fn activate_window(&mut self, window: &W::Id) {
|
||||
self.scrolling.activate_window(window);
|
||||
pub fn activate_window(&mut self, window: &W::Id) -> bool {
|
||||
self.scrolling.activate_window(window)
|
||||
}
|
||||
|
||||
pub fn set_insert_hint(&mut self, insert_hint: InsertHint) {
|
||||
|
||||
Reference in New Issue
Block a user