Skip to content

Commit 24417e1

Browse files
author
Tony Crisci
committed
fix some con property setters
1 parent 983387f commit 24417e1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

i3ipc/con.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(self, data, parent, conn):
8383
ipc_properties = [
8484
'border', 'current_border_width', 'floating', 'focus', 'focused', 'fullscreen_mode',
8585
'id', 'layout', 'marks', 'name', 'num', 'orientation', 'percent', 'scratchpad_state',
86-
'sticky', 'type', 'urgent', 'window', 'pid'
86+
'sticky', 'type', 'urgent', 'window', 'pid', 'app_id'
8787
]
8888
for attr in ipc_properties:
8989
if attr in data:
@@ -92,7 +92,7 @@ def __init__(self, data, parent, conn):
9292
setattr(self, attr, None)
9393

9494
# 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:
9696
self.marks = []
9797
if 'mark' in data and data['mark']:
9898
self.marks.append(data['mark'])
@@ -135,10 +135,8 @@ def __init__(self, data, parent, conn):
135135
if 'title' in data['window_properties']:
136136
self.window_title = data['window_properties']['title']
137137

138-
if 'app_id' in data:
139-
self.app_id = data['app_id']
140-
141138
self.rect = Rect(data['rect'])
139+
self.deco_rect = None
142140
if 'window_rect' in data:
143141
self.window_rect = Rect(data['window_rect'])
144142
if 'deco_rect' in data:

0 commit comments

Comments
 (0)