tweak output # detection

This commit is contained in:
piotr
2023-01-08 00:59:52 +01:00
parent 88ead6f67b
commit ff8d9873b2

View File

@@ -117,13 +117,13 @@ def check_tree():
if num != common.outputs_num:
if num < common.outputs_num:
restart()
# print("Number of outputs decreased {}, restarting".format(num))
# restart()
# else:
# print("Number of outputs increased ({}); restart in {} ms."
# .format(num, common_settings["restart-delay"]))
# # Gdk.threads_add_timeout(GLib.PRIORITY_DEFAULT_IDLE, common_settings["restart-delay"], restart)
# restart()
print("Number of outputs decreased {}, restarting".format(num))
restart()
else:
print("Number of outputs increased ({}); restart in {} ms."
.format(num, common_settings["restart-delay"]))
# Gdk.threads_add_timeout(GLib.PRIORITY_DEFAULT_IDLE, common_settings["restart-delay"], restart)
restart()
for item in common.taskbars_list:
item.refresh(tree)