summaryrefslogtreecommitdiff
path: root/src/xrandr.h
diff options
context:
space:
mode:
authorMathieu OTHACEHE <m.othacehe@gmail.com>2016-12-07 10:03:54 +0100
committerJérémie Courrèges-Anglas <jca@wxcvbn.org>2016-12-08 17:41:37 +0100
commitf7c9339d236a9742b15700457787b7f6e64fb7c4 (patch)
tree786c4c5e6f06d3cec1a25045de8930d6ecd05637 /src/xrandr.h
parent61516d64eb81d872d4e4d2a4ed50dbcb5d950557 (diff)
downloadratpoison-f7c9339d236a9742b15700457787b7f6e64fb7c4.zip
Add primary screen detection
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.
Diffstat (limited to 'src/xrandr.h')
-rw-r--r--src/xrandr.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xrandr.h b/src/xrandr.h
index d765789..25ff830 100644
--- a/src/xrandr.h
+++ b/src/xrandr.h
@@ -26,6 +26,7 @@
void init_xrandr(void);
int *xrandr_query_screen(int *screen_count);
+int xrandr_is_primary (rp_screen *screen);
void xrandr_fill_screen(int rr_output, rp_screen *screen);
void xrandr_notify(XEvent *ev);