main/postmarketos-base-ui-gnome: enable fractional scaling

Makes it much easier to use plain gnome-shell on tablets or even phones
and is already enabled on GNOME Mobile.

@rmader remebers upstream not enabling this by default because of bugs
with XWayland, but since XWayland applications are much more rare on
mobile phones, plus it's still 100% by default and a fractional scale
has to be enabled manually.

> Makes mutter default to layout logical monitors in a logical pixel
> coordinate space, while scaling monitor framebuffers instead of window
> content, to manage HiDPI monitors. Does not require a restart.

Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/7529>
This commit is contained in:
Achill Gilgenast 2025-12-08 21:33:43 +01:00 committed by The Friendly Merge Bot
parent a6fc5a6a34
commit bb5686f152
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,2 @@
[org.gnome.mutter]
experimental-features=['scale-monitor-framebuffer']

View file

@ -2,7 +2,7 @@
# Co-Maintainer: Pablo Correa Gomez <pabloyoyoista@postmarketos.org>
# Co-Maintainer: Achill Gilgenast <achill@achill.org>
pkgname=postmarketos-base-ui-gnome
pkgver=9
pkgver=10
pkgrel=0
pkgdesc="Meta package for shared configuration for GNOME-based UIs"
url="https://postmarketos.org"
@ -28,6 +28,7 @@ depends="
source="
00_postmarketos-base-ui-gnome.gschema.override
10_postmarketos-green-accent.gschema.override
10_mutter-fractional-scaling.gschema.override
"
options="!check"
subpackages="$pkgname-openrc"
@ -87,4 +88,5 @@ openrc() {
sha512sums="
39b5bb5e669756e2a308ab61b7901e76a9eff9e37c82d50bd9ff77800e72c19b580256f617a2ad0949c1746ab4e163e5ce009c134ab77f8a32f758b1b963862e 00_postmarketos-base-ui-gnome.gschema.override
c255b0914043f09ef5cc56d50c26e9c8885af128abc3ed5494606bd304eefdeb761ed3bc2d5f86f7c3bfb16f7fc21ca1a6d954c8d21e73e7a5e7612a84a78b7c 10_postmarketos-green-accent.gschema.override
7c73a011332305a7e811df5dca1b819b41e4cab737384ecb211e88cf6e4aa1027a75ce33163562e839847d6be006cf74d71083de4c3efc78f432355d9a6df20b 10_mutter-fractional-scaling.gschema.override
"