Skip to content

Commit

Permalink
fix #329: hyprland active client empty on windowclose
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Mar 8, 2024
1 parent 5da9b96 commit 987894c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

- compiles with typescript >= 5.0.4
- DrawingArea.draw-fn
- hyprland: active client empty on window close

# 1.8.0

Expand Down
10 changes: 6 additions & 4 deletions src/service/hyprland.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,10 +334,12 @@ export class Hyprland extends Service {
case 'closewindow':
await this._syncWorkspaces(false);
await this._syncClients(false);
this._active.client.updateProperty('class', '');
this._active.client.updateProperty('title', '');
this._active.client.updateProperty('address', '');
this._active.client.emit('changed');
if (this._active.client.address === '0x' + argv[0]) {
this._active.client.updateProperty('class', '');
this._active.client.updateProperty('title', '');
this._active.client.updateProperty('address', '');
this._active.client.emit('changed');
}
['clients', 'workspaces'].forEach(e => this.notify(e));
this.emit('client-removed', '0x' + argv[0]);
break;
Expand Down

0 comments on commit 987894c

Please sign in to comment.