tweak output # detection
This commit is contained in:
@@ -116,13 +116,13 @@ def check_tree():
|
||||
num = num_active_outputs(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:
|
||||
|
Reference in New Issue
Block a user