check outputs dpms state

This commit is contained in:
piotr
2023-01-05 03:53:20 +01:00
parent 162b51b1ec
commit 34e8a7a8f2

View File

@@ -116,10 +116,7 @@ def check_tree():
num = num_active_outputs()
if num != common.outputs_num:
if num < common.outputs_num:
print("Number of outputs decreased:", num)
restart()
else:
print("Number of outputs increased", num)
print("Number of outputs changed:", num)
Gdk.threads_add_timeout(GLib.PRIORITY_DEFAULT_IDLE, common_settings["restart-delay"], restart)
for item in common.taskbars_list: