detect rotation directly via X or Wayland

Fixes #44

This commit changes the way that screen rotation is detected. Instead of
using Mutter's DBus interface, we now listen directly for X and Wayland
events indicating the screen has been rotated (RRScreenChangeNotify and
wl_output::geometry events). This has the advantage of working outside
of Phosh.
This commit is contained in:
xad6
2022-08-15 01:29:35 +00:00
committed by Martijn Braam
parent 9cb23ee076
commit e75eb375de
3 changed files with 177 additions and 77 deletions

View File

@@ -1,7 +1,7 @@
build:debian:
image: debian:bookworm-slim
before_script:
- apt-get update && apt-get -y install gcc meson ninja-build git clang-format-14 libgtk-4-dev libtiff-dev libzbar-dev libfeedback-dev
- apt-get update && apt-get -y install gcc meson ninja-build git clang-format-14 libgtk-4-dev libtiff-dev libzbar-dev libfeedback-dev libwayland-dev libx11-dev libxrandr-dev
script:
- meson build
- ninja -C build
@@ -11,7 +11,7 @@ build:debian:
build:alpine:
image: alpine:edge
before_script:
- apk add --no-cache build-base meson samurai gtk4.0-dev tiff-dev zbar-dev feedbackd-dev
- apk add --no-cache build-base meson samurai gtk4.0-dev tiff-dev zbar-dev feedbackd-dev wayland-dev libx11-dev libxrandr-dev
script:
- meson build
- ninja -C build