Commit Graph

11 Commits

Author SHA1 Message Date
mnussbaum
2a548252d1 Fix inverted left/right rotation with Xorg backend
The accelerometer to Xorg orientation mapping had left and right
inverted, causing the output to flip opposite the desired direction when
used sideways.
2019-09-06 00:00:27 -07:00
mnussbaum
5ca46c50f8 Fix detection of initial rotation state
This ensures that if rot8 starts while the window server output is
rotated, but the physical device is in a "normal" position, rot8 will
detect the initial misalignment and rotate the window server's output to
reflect the device's physical state.

This scenario occurs if you frequently toggle rot8 on and off as form of
rotation lock, and you:

1. Use rot8 to rotate the output sideways
2. Turn rot8 off
3. Move the physical device back into a "normal" position
4. Turn rot8 back on
2019-09-06 00:00:12 -07:00
mnussbaum
1e0cc3ed57 Use Xorg process to determine if on X backend
I believe the old process name "x" was incorrect. This also moves the
list of backends to an enum instead of a string.
2019-09-05 17:30:15 -07:00
mnussbaum
25860caa84 Apply suggested formatting from rustfmt 2019-09-05 17:28:50 -07:00
e3b
19c65e6c7a 🔧 update metadata 2019-08-17 02:15:16 +02:00
e3b
7fd7f53d96 🔧 fix error 2019-08-17 02:07:30 +02:00
e3b
fb1ec8ceca add sleep arg & update readme 2019-08-17 01:47:36 +02:00
Esra Fernau
dbcebf433b
📋 add LICENSE
📋 add LICENSE
2019-08-16 20:25:35 +02:00
Esra Fernau
06cd5cb88c
add LICENSE 2019-08-16 20:23:42 +02:00
e3b
74cd1cd438 add X11 support 2019-05-19 05:41:30 +02:00
e3b
0752aaf28e 🌱 2019-05-18 22:27:15 +02:00