Add display rotation: Rot pill, chandra-ctl rotate, sensor auto-rotate
CI / test (push) Failing after 51s
CI / test (push) Failing after 51s
- Rotate the display 0/90/180/270 degrees in the KMS host, with scanout and libinput touch/pointer coordinates transformed to match - Add a touch "Rot" pill beside "KB": tap turns 90 CW, long-press or right-click flips 180 - Add `chandra-ctl rotate [cw|ccw|flip|0|90|180|270|status]`; CHANDRA_ROTATE sets the initial orientation - Add session/chandra-auto-rotate, which follows iio-sensor-proxy orientation (disable with CHANDRA_AUTO_ROTATE=0) - Advertise window_menu, maximize, fullscreen and minimize via xdg_toplevel.wm_capabilities (xdg_wm_base v5+) - Add docs/handset.md covering handset touch, scaling, OSK and rotation
This commit is contained in:
1 parent
905dab8725
commit
2e00009c79
21 files changed
+669
-63
No files matched your search
@@ -53,6 +53,12 @@ pub fn Kms::set_power(_self : Kms, on : Bool) -> Unit {
|
||||
@hostdisplay.set_power(on)
|
||||
}
|
||||
|
||||
///| Rotate the output (`0=0`, `1=90 CW`, `2=180`, `3=270 CW`); returns new logical `(w, h)`.
|
||||
pub fn Kms::set_rotation(_self : Kms, rot : Int) -> (Int, Int) {
|
||||
let p = @hostdisplay.set_rotation(rot.reinterpret_as_uint()).reinterpret_as_int()
|
||||
((p >> 16) & 0xFFFF, p & 0xFFFF)
|
||||
}
|
||||
|
||||
///| Show the cursor for a wp_cursor_shape_v1 value.
|
||||
pub fn Kms::set_cursor_shape(_self : Kms, shape : UInt) -> Unit {
|
||||
@hostdisplay.set_cursor_shape(shape)
|
||||
|
||||
Reference in new issue
Block a user