forked from quickshell/quickshell
hyprland/ipc: actually set lastIpcObject
This commit is contained in:
parent
f842b84a5a
commit
1d02292fbf
1 changed files with 3 additions and 0 deletions
|
@ -69,6 +69,7 @@ void HyprlandToplevel::updateFromObject(const QVariantMap& object) {
|
||||||
auto addressStr = object.value("address").value<QString>();
|
auto addressStr = object.value("address").value<QString>();
|
||||||
auto title = object.value("title").value<QString>();
|
auto title = object.value("title").value<QString>();
|
||||||
|
|
||||||
|
Qt::beginPropertyUpdateGroup();
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
auto address = addressStr.toULongLong(&ok, 16);
|
auto address = addressStr.toULongLong(&ok, 16);
|
||||||
if (!ok || !address) {
|
if (!ok || !address) {
|
||||||
|
@ -85,6 +86,8 @@ void HyprlandToplevel::updateFromObject(const QVariantMap& object) {
|
||||||
if (!workspace) return;
|
if (!workspace) return;
|
||||||
|
|
||||||
this->setWorkspace(workspace);
|
this->setWorkspace(workspace);
|
||||||
|
this->bLastIpcObject = object;
|
||||||
|
Qt::endPropertyUpdateGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void HyprlandToplevel::setWorkspace(HyprlandWorkspace* workspace) {
|
void HyprlandToplevel::setWorkspace(HyprlandWorkspace* workspace) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue