This patch add support for xrandr primary screen detection. If any primary screen is detected at startup, it will be used as current screen.
Mathieu OTHACEHE (7): Remove useless argument from is_rp_window_for_screen function Move function declaration to the right header Add primary screen detection Store RootWindow in global_screen structure Add a function to find a screen matching a given XWindowAttributes Simplify scanwins function Select xrandr primary screen at startup if possible src/data.h | 2 ++ src/events.c | 2 +- src/main.c | 8 +------- src/manage.c | 27 ++++++++++++--------------- src/manage.h | 2 +- src/ratpoison.h | 1 - src/screen.c | 48 +++++++++++++++++++++++++++++++++++++++++++++++- src/screen.h | 5 ++++- src/xrandr.c | 15 ++++++++++++++- src/xrandr.h | 1 + 10 files changed, 83 insertions(+), 28 deletions(-) -- 2.10.0 _______________________________________________ Ratpoison-devel mailing list Ratpoison-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/ratpoison-devel