summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2016-12-08Select xrandr primary screen at startup if possibleMathieu OTHACEHE
If xrandr support is enabled and a screen is marked primary, use it as current screen at startup. Otherwise, use the first screen in sorted screen list as current screen at startup.
2016-12-08Simplify scanwins functionMathieu OTHACEHE
Use find_screen_by_attr function, remove screen argument and a useless debug message.
2016-12-08Add a function to find a screen matching a given XWindowAttributesMathieu OTHACEHE
It allows to find the screen associated to a Window, using it's x and y position.
2016-12-08Add primary screen detectionMathieu OTHACEHE
The user may specify that a screen is primary with xrandr. Save this information in ratpoison for future use. The use of XRRGetOutputPrimary forces us to bump xrandr supported revision from >=1.2 to >=1.3.
2016-12-08Move function declaration to the right headerMathieu OTHACEHE
find_screen is defined in screen.c so it makes more sense to declare it in screen.h
2016-12-08Remove useless argument from is_rp_window_for_screen functionMathieu OTHACEHE
The screen argument is useless as this function operates on all screens. To find if a window belong to a specific ratpoison screen, function is_rp_window_for_given_screen may be used.
2016-12-01Fix and simplify sfrestoreJérémie Courrèges-Anglas
Use a scratch buffer for each screen, this simplifies a lot allocations and iterations, and allows restoring screens that contain more than one frame.
2016-12-01sfrestore: in case of error, mention the screen number, not its xrandr idJérémie Courrèges-Anglas
2016-12-01sfrestore: partial fix for frame allocation/deallocationJérémie Courrèges-Anglas
There is still a problem with allocation of screens vs frames. A screen can have multiple frames (for now this triggers a segfault).
2016-12-01sselect: print the screen number in case of failureJérémie Courrèges-Anglas
2016-12-01Callers shouldn't pass a negative number to screen_number()Jérémie Courrèges-Anglas
2016-12-01fdump: don't segfault if screen is not foundJérémie Courrèges-Anglas
2016-12-01Tighten screen sorting: comparing a screen with itself should return 0Jérémie Courrèges-Anglas
2016-12-01Kill gcc uninitialized warningMathieu OTHACEHE
It is useless to initialize screen_count, but it prevents a gcc warning.
2016-12-01Add height dimension to screen sortingMathieu OTHACEHE
Screen are only sorted according to their width offset from origin ("left" in screen struct). Also sort screen that share a same width offset according to their height offset ("top" in screen struct).
2016-12-01Fix sfrestoreMathieu OTHACEHE
Use screen numset in sfrestore
2016-12-01Fix sfdumpMathieu OTHACEHE
Use screen numset in sfdump
2016-12-01Fix fdump and sselectMathieu OTHACEHE
Use screen numset in fdump and sselect.
2016-12-01Assign a number to each screen using a numsetMathieu OTHACEHE
A number is added to rp_screen to identify every screen. The screen numbers are affected at ratpoison start, when screens are sorted. On screen addition, a new number is requested. On screen deletion, the screen number is released.
2016-11-24Kill gcc unused function warningMathieu OTHACEHE
The xrandr_rotation_string function is used only if DEBUG is enabled.
2016-11-23Kill keysym_to_keycodes, commented out since 2006Jérémie Courrèges-Anglas
2016-11-23Kill redundant declJérémie Courrèges-Anglas
2016-11-23Fix rotations when using xrandrJérémie Courrèges-Anglas
2016-11-23define HAVE_XRANDR/link with libXrandr when we actually want toJérémie Courrèges-Anglas
2016-11-23Only call xrandr_fill_screen is xrandr is availableJérémie Courrèges-Anglas
2016-11-23Keep on handling ConfigureNotify if we don't have xrandrJérémie Courrèges-Anglas
2016-11-23Kill superflous var.Jérémie Courrèges-Anglas
2016-11-23Reinstate code that should stay: we may not have xrandrJérémie Courrèges-Anglas
2016-11-23Sprinkle more debug in xrandr code.Jérémie Courrèges-Anglas
2016-11-23Keep frame undo/redo local to actions.cJérémie Courrèges-Anglas
2016-11-23Reorder to put local variables togetherJérémie Courrèges-Anglas
2016-11-23Move more stuff from actions.h to actions.cJérémie Courrèges-Anglas
2016-11-23Dead definesJérémie Courrèges-Anglas
2016-11-23Kill more dead decls and functions.Jérémie Courrèges-Anglas
2016-11-23Move some implementation details from actions.h to actions.cJérémie Courrèges-Anglas
2016-11-23Consistent #include styleJérémie Courrèges-Anglas
2016-11-23Implement a "commands" command to dump all available... commandsJérémie Courrèges-Anglas
2016-11-23Switch rudeness to a settable variableJérémie Courrèges-Anglas
2016-11-23Kill unused declJérémie Courrèges-Anglas
2016-11-22Add a note to keep variables sorted.Jérémie Courrèges-Anglas
2016-11-22Kill "compat" and all support for "deffoo..."Jérémie Courrèges-Anglas
It's been more than 10 years that "compat" has been introduced, people have had enough time to change their config files and scripts.
2016-11-22Sort and insert variables in orderJérémie Courrèges-Anglas
Makes ''ratpoison -c set'' output more readable.
2016-11-22TypoJérémie Courrèges-Anglas
2016-11-22Make 'warp' and 'startupmessage' settable variables.Jérémie Courrèges-Anglas
For consistency with other variables they accept 0 or 1. The 'warp' and 'startup_message' commands stay around and still accept "on" and "off".
2016-11-22strcasestr was born in BSD land, contrary to what glibc saysJérémie Courrèges-Anglas
strcasestr might be a portability problems, it is non-standard and some C libraries out there might not provide it.
2016-11-22Temporarily mark sfrestore as brokenJérémie Courrèges-Anglas
2016-11-22Style nits, typo and non-existing functions.Jérémie Courrèges-Anglas
2016-11-21Only use xrandr if Xrandr init succeedsJérémie Courrèges-Anglas
2016-11-21Replace extra definition with a declarationJérémie Courrèges-Anglas
2016-11-17Add xrandr supportMathieu OTHACEHE
Drop deprecated xinerama support and replace it with xrandr. Signed-off-by: Mathieu OTHACEHE <m.othacehe@gmail.com>