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
@@ -328,6 +328,16 @@ pub fn run(args : Array[String]) -> Int {
|
||||
NoChange => ()
|
||||
}
|
||||
comp.step()
|
||||
match comp.take_pending_rotation() {
|
||||
Some(rot) => {
|
||||
let (nw, nh) = k.set_rotation(rot)
|
||||
if nw > 0 && nh > 0 {
|
||||
comp.apply_rotated_size(nw, nh)
|
||||
need_present = true
|
||||
}
|
||||
}
|
||||
None => ()
|
||||
}
|
||||
let f1 = @sys.monotonic_ms()
|
||||
k.set_cursor_shape(comp.desired_cursor())
|
||||
// The host draws; only a changed desktop is sent, and the frame is shown by the host
|
||||
|
||||
Reference in new issue
Block a user