I sent a message to khnz about the rotation issue and he sent me a diff for the code changes to limit the rotation to right or normal which is perfect! Anyway, thought someone might like the code:
Code:
diff --git a/src/rotation.c b/src/rotation.c
index a9e9eb5..a78758a 100644
--- a/src/rotation.c
+++ b/src/rotation.c
@@ -217,9 +217,7 @@ void rotate_display(Display *display,
Rotation rr,
int mode)
sz = XRRConfigCurrentConfiguration(sc, &cr);
if(!rr) {
- rr = (cr & 0x7) << 1;
- if(!rr)
- rr = RR_Rotate_0;
+ rr = ((cr & 0xf) == RR_Rotate_0 ? RR_Rotate_270 :
RR_Rotate_0);
}
if(rr != (cr & 0xf)) {
It didn't work for me as a patch, but I can read what lines to remove and what to add from that so it wasn't hard. Also he said version 3 will have a GUI for easy configuration of these options.
Bookmarks