splitbrain/clipscreen

Killing the app with SIGTERM left my windows manager stuck small

Closed this issue · 3 comments

nh2 commented

I did a killall clipscreen which resulted in this:

image

Now clipscreen terminated and all my i3 workspaces are now clipped to the region, and not restored as happens with normal SIGINT termination (Ctrl+C).

Would be cool to

  • Also handle SIGTERM
  • Mention in the README what can be done in such situation (where clipscreen is killed and cannot run its cleanup code)
nh2 commented

Also, in this state, all subsequent invocaitons of clipscreen fail:

./clipscreen 50 50 0 0

Added virtual monitor
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  43 ()
  Value in failed request:  0x353
  Serial number of failed request:  13
  Current serial number in output stream:  16

to manually delete the virtual monitor use

xrandr --delmonitor clipscreen

I will look into preventing the issue.

SIGTERM is now handled as well and should a monitor remain anyway, it is deleted before a new one is created.