mirror of
https://git.outfoxxed.me/quickshell/quickshell.git
synced 2025-11-06 19:14:57 +11:00
hyprland/ipc: expose Hyprland toplevels
This commit is contained in:
parent
c115df8d34
commit
362c8e1b69
11 changed files with 685 additions and 43 deletions
|
|
@ -28,6 +28,13 @@ HyprlandIpcQml::HyprlandIpcQml() {
|
|||
this,
|
||||
&HyprlandIpcQml::focusedMonitorChanged
|
||||
);
|
||||
|
||||
QObject::connect(
|
||||
instance,
|
||||
&HyprlandIpc::activeToplevelChanged,
|
||||
this,
|
||||
&HyprlandIpcQml::activeToplevelChanged
|
||||
);
|
||||
}
|
||||
|
||||
void HyprlandIpcQml::dispatch(const QString& request) {
|
||||
|
|
@ -51,6 +58,10 @@ QBindable<HyprlandWorkspace*> HyprlandIpcQml::bindableFocusedWorkspace() {
|
|||
return HyprlandIpc::instance()->bindableFocusedWorkspace();
|
||||
}
|
||||
|
||||
QBindable<HyprlandToplevel*> HyprlandIpcQml::bindableActiveToplevel() {
|
||||
return HyprlandIpc::instance()->bindableActiveToplevel();
|
||||
}
|
||||
|
||||
ObjectModel<HyprlandMonitor>* HyprlandIpcQml::monitors() {
|
||||
return HyprlandIpc::instance()->monitors();
|
||||
}
|
||||
|
|
@ -59,4 +70,8 @@ ObjectModel<HyprlandWorkspace>* HyprlandIpcQml::workspaces() {
|
|||
return HyprlandIpc::instance()->workspaces();
|
||||
}
|
||||
|
||||
ObjectModel<HyprlandToplevel>* HyprlandIpcQml::toplevels() {
|
||||
return HyprlandIpc::instance()->toplevels();
|
||||
}
|
||||
|
||||
} // namespace qs::hyprland::ipc
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue