Skip to content

Commit

Permalink
fix #114 create client on windowtitlev2
Browse files Browse the repository at this point in the history
  • Loading branch information
Aylur committed Nov 21, 2024
1 parent 4fcf3c9 commit f9a3526
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions lib/hyprland/hyprland.vala
Original file line number Diff line number Diff line change
Expand Up @@ -381,13 +381,8 @@ public class Hyprland : Object {
break;

case "openwindow":
var addr = args[1].split(",")[0];
var client = new Client();
_clients.insert(addr, client);
yield sync_clients();
yield sync_workspaces();
client_added(client);
notify_property("clients");
break;

case "closewindow":
Expand Down Expand Up @@ -426,6 +421,17 @@ public class Hyprland : Object {
minimize(get_client(argv[0]), argv[1] == "0");
break;

// first event that signals a new window not openwindow
case "windowtitlev2":
var addr = args[1].split(",")[0];
var client = new Client();
_clients.insert(addr, client);
yield sync_clients();
yield sync_workspaces();
client_added(client);
notify_property("clients");
break;

case "windowtitle":
yield sync_clients();
break;
Expand Down

0 comments on commit f9a3526

Please sign in to comment.