focus-follow-cursor: Change output focus when needed

This commit is contained in:
Marten Ringwelski
2020-12-07 13:51:06 +01:00
committed by GitHub
parent 0fecdf60cb
commit 49bf0e679f
3 changed files with 14 additions and 19 deletions

View File

@ -242,6 +242,8 @@ pub fn setFocusRaw(self: *Self, new_focus: FocusTarget) void {
/// Focus the given output, notifying any listening clients of the change.
pub fn focusOutput(self: *Self, output: *Output) void {
if (self.focused_output == output) return;
const root = &self.input_manager.server.root;
var it = self.status_trackers.first;