forked from quickshell/quickshell
hyprland/ipc: track workspace fullscreen state
This commit is contained in:
parent
edfc4c681c
commit
2e33ef5b7f
3 changed files with 16 additions and 0 deletions
|
|
@ -381,6 +381,15 @@ void HyprlandIpc::onEvent(HyprlandIpcEvent* event) {
|
|||
<< (*workspaceIter)->bindableName().value() << "to" << name;
|
||||
|
||||
(*workspaceIter)->bindableName().setValue(name);
|
||||
} else if (event->name == "fullscreen") {
|
||||
if (auto* workspace = this->bFocusedWorkspace.value()) {
|
||||
workspace->bindableHasFullscreen().setValue(event->data == "1");
|
||||
}
|
||||
|
||||
// In theory knowing the current workspace would be enough to determine where
|
||||
// the fullscreen state changed, but this falls apart if you move a fullscreen
|
||||
// window between workspaces.
|
||||
this->refreshWorkspaces(false);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue