summaryrefslogtreecommitdiff
path: root/src/data.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/data.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/data.h')
-rw-r--r--src/data.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/data.h b/src/data.h
index eb662ce..08f1667 100644
--- a/src/data.h
+++ b/src/data.h
@@ -161,6 +161,7 @@ struct rp_global_screen
struct xrandr_info {
int output;
int crtc;
+ int primary;
struct sbuf* name;
};