Mathieu OTHACEHE @ 2016-11-27 (Sunday), 17:58 (+0100)
On the negative side, if the user unplug a screen and plug a different screen, it will have the same id as the previously unplugged screen.
I would consider that expected behaviour. One could compare it with how a newly opened window might reuse the number of a previously existing window. This is a window manager after all. Even although it is scriptable, the primary use involves interactive use, where it is reasonable that the user actually pays some attention.
While you're looking at reworking the xrandr patch, it might be worth noticing the corner case where all displays are disabled. Unfortunately, at least with the version of the patch I tried, ratpoison does not seem to recover from the state with zero active screens, even after one (or more) get readded.
-- /|cos| _______________________________________________ Ratpoison-devel mailing list Ratpoison-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/ratpoison-devel