hyprland/ipc: handle renameworkspace

This commit is contained in:
outfoxxed 2025-01-22 04:14:55 -08:00
parent b336129c34
commit 3c7dfcb220
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
3 changed files with 28 additions and 1 deletions

View file

@ -11,7 +11,15 @@
namespace qs::hyprland::ipc {
qint32 HyprlandWorkspace::id() const { return this->mId; }
QString HyprlandWorkspace::name() const { return this->mName; }
void HyprlandWorkspace::setName(QString name) {
if (name == this->mName) return;
this->mName = std::move(name);
emit this->nameChanged();
}
QVariantMap HyprlandWorkspace::lastIpcObject() const { return this->mLastIpcObject; }
void HyprlandWorkspace::updateInitial(qint32 id, QString name) {