summaryrefslogtreecommitdiff
path: root/lib/sway/workspace.vala
blob: 17795b31842a22fd34991b3fddd3fa00646b47d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace AstalSway {
  public class Workspace : Node {
    public string representation;

    public Workspace() {
      node_type = NodeType.WORKSPACE;
    }

    internal override void sync(Json.Object obj) {
      var rep = obj.get_member("representation");
      if (rep != null) {
        representation = rep.get_string();
      } else {
        representation = "";
        print("aa");
      }
      base.sync(obj);
    }
  }
}