forked from quickshell/quickshell
hyprland/ipc: further cleanup + add Hyprland.focusedWorkspace
This commit is contained in:
parent
67b2682604
commit
392f56c40e
5 changed files with 39 additions and 8 deletions
|
|
@ -50,6 +50,11 @@ HyprlandIpc::HyprlandIpc() {
|
|||
return;
|
||||
}
|
||||
|
||||
this->bFocusedWorkspace.setBinding([this]() -> HyprlandWorkspace* {
|
||||
if (!this->bFocusedMonitor) return nullptr;
|
||||
return this->bFocusedMonitor->bindableActiveWorkspace().value();
|
||||
});
|
||||
|
||||
this->mRequestSocketPath = hyprlandDir + "/.socket.sock";
|
||||
this->mEventSocketPath = hyprlandDir + "/.socket2.sock";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue