@@ -45,7 +45,7 @@ xprop_event_reader(){
4545 echo " $stacking_window_id "
4646 fi
4747 done
48- unset stacking_windows focused_window_id stacking_window_id
48+ unset stacking_windows_id focused_window_id stacking_window_id
4949 # Print event for unset '--hot' option since it becomes useless from this moment
5050 echo ' nohot'
5151 fi
@@ -324,7 +324,7 @@ unfocus = ''
324324 break
325325 done < <( LC_ALL=' C' bash --version)
326326 echo " A daemon for X11 designed to automatically limit CPU usage of unfocused windows and run commands on focus and unfocus events.
327- flux 1.4.1 (bash $bash_version )
327+ flux 1.4.2 (bash $bash_version )
328328License: GPL-3.0
329329Repository: https://github.com/itz-me-zappex/flux
330330This is free software: you are free to change and redistribute it.
@@ -652,7 +652,7 @@ while read -r window_id; do
652652 fi
653653 done
654654 cached_pids_array=(" ${cached_pids_array_temp[@]} " )
655- unset cached_pid cached_pid_to_remove cached_pids_array_temp cached_pids_to_remove_array
655+ unset cached_pid cached_pid_to_remove cached_pids_array_temp cached_pids_to_remove_array found
656656 fi
657657 print_info " $info_prefix Cache of process information has been cleaned up."
658658 fi
@@ -829,14 +829,14 @@ while read -r window_id; do
829829 is_frozen_pid[" $process_pid " ]=' '
830830 fps_limited_pid[" $section_name " ]=' '
831831 # Remove PID from array
832- for frozen_process in " ${frozen_processes_pids_array[@]} " ; do
832+ for frozen_process_pid in " ${frozen_processes_pids_array[@]} " ; do
833833 # Skip current PID since I want remove it from array
834- if [[ " $frozen_process " != " $process_pid " ]]; then
835- frozen_processes_pids_array_temp+=(" $frozen_process " )
834+ if [[ " $frozen_process_pid " != " $process_pid " ]]; then
835+ frozen_processes_pids_array_temp+=(" $frozen_process_pid " )
836836 fi
837837 done
838838 frozen_processes_pids_array=(" ${frozen_processes_pids_array_temp[@]} " )
839- unset frozen_process frozen_processes_pids_array_temp
839+ unset frozen_process_pid frozen_processes_pids_array_temp
840840 elif [[ -n " ${is_cpu_limited_pid["$process_pid"]} " ]]; then # Check for CPU-limit via 'cpulimit' subprocess
841841 # Terminate 'cpulimit' subprocess
842842 if ! pkill -P " ${cpulimit_subprocess_pid["$process_pid"]} " > /dev/null 2>&1 ; then
0 commit comments