@@ -83,7 +83,7 @@ def __init__(self, data, parent, conn):
83
83
ipc_properties = [
84
84
'border' , 'current_border_width' , 'floating' , 'focus' , 'focused' , 'fullscreen_mode' ,
85
85
'id' , 'layout' , 'marks' , 'name' , 'num' , 'orientation' , 'percent' , 'scratchpad_state' ,
86
- 'sticky' , 'type' , 'urgent' , 'window' , 'pid'
86
+ 'sticky' , 'type' , 'urgent' , 'window' , 'pid' , 'app_id'
87
87
]
88
88
for attr in ipc_properties :
89
89
if attr in data :
@@ -92,7 +92,7 @@ def __init__(self, data, parent, conn):
92
92
setattr (self , attr , None )
93
93
94
94
# XXX in 4.12, marks is an array (old property was a string "mark")
95
- if not self .marks :
95
+ if self .marks is None :
96
96
self .marks = []
97
97
if 'mark' in data and data ['mark' ]:
98
98
self .marks .append (data ['mark' ])
@@ -135,10 +135,8 @@ def __init__(self, data, parent, conn):
135
135
if 'title' in data ['window_properties' ]:
136
136
self .window_title = data ['window_properties' ]['title' ]
137
137
138
- if 'app_id' in data :
139
- self .app_id = data ['app_id' ]
140
-
141
138
self .rect = Rect (data ['rect' ])
139
+ self .deco_rect = None
142
140
if 'window_rect' in data :
143
141
self .window_rect = Rect (data ['window_rect' ])
144
142
if 'deco_rect' in data :
0 commit comments