@@ -35,6 +35,10 @@ option_repeat_check(){
3535# Extract window IDs from xprop events
3636xprop_event_reader (){
3737 local stacking_windows_id focused_window_id stacking_window_id
38+ # Exit with an error if xprop fails (like in case when it unable to open display)
39+ if ! xprop -root > /dev/null 2>&1 ; then
40+ print_error " Cannot start X11 event reading because 'xprop' exits with an error!"
41+ fi
3842 # Print window IDs of open windows to apply limits immediately if '--hot' option was passed
3943 if [[ -n " $hot " ]]; then
4044 # Extract IDs of open windows
@@ -230,7 +234,10 @@ advice_on_option_error="\n$info_prefix Try 'flux --help' for more information."
230234while (( $# > 0 )) ; do
231235 case " $1 " in
232236 --changelog | -c )
233- echo ' Changelog for flux 1.5:
237+ echo ' Changelog for flux 1.5.1:
238+ - Added check for ability to read X11 events before start.
239+
240+ Changelog for flux 1.5:
234241- Added option `--focus` to create template for config from focused window, `--template` option is renamed to `--pick`.
235242- Config keys `mangohud-fps-limit` and `mangohud-fps-unlimit` are renamed to `fps-limit` and `fps-unlimit` respectively.
236243- Added `--changelog` option to display changelog.
@@ -354,7 +361,7 @@ Options and values:
354361 break
355362 done < <( LC_ALL=' C' bash --version)
356363 echo " A daemon for X11 designed to automatically limit CPU usage of unfocused windows and run commands on focus and unfocus events.
357- flux 1.5 (bash $bash_version )
364+ flux 1.5.1 (bash $bash_version )
358365License: GPL-3.0
359366Repository: https://github.com/itz-me-zappex/flux
360367This is free software: you are free to change and redistribute it.
0 commit comments