Update SwayWindowBackend.cpp
This commit is contained in:
@@ -310,14 +310,14 @@ void SwayWindowBackend::refresh()
|
||||
}
|
||||
}
|
||||
|
||||
const bool focusChanged = (focused != m_focusedWindowId);
|
||||
const bool focusDidChange = (focused != m_focusedWindowId);
|
||||
m_windows = std::move(windows);
|
||||
m_workspaces = std::move(workspaces);
|
||||
m_focusedWindowId = focused;
|
||||
|
||||
emit windowsChanged();
|
||||
emit workspacesChanged();
|
||||
if (focusChanged)
|
||||
if (focusDidChange)
|
||||
emit focusChanged();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user