Bug#1110858: ceratopsian-theme: plymouth password/fsck prompts off-center on multi-monitor mixed-resolution set-ups
Package: desktop-base
Version: 13.0.3
Severity: minor
Tags: patch
X-Debbugs-Cc: shaun@lewisonline.xyz
Dear Maintainer,
On multi-monitor setups with different resolutions (e.g. 3840x2160 + 2560x1080),
the ceratopsian Plymouth theme positions the LUKS unlock and fsck prompts off to
the right. The script currently uses Window.GetX() + Window.GetWidth()/2, which
mixes a global X offset with per-display sizing and causes drift on multi-head
layouts.
Expected behavior
Prompts (unlock dialog, bullets, fsck/status lines) should be horizontally
centered on the *active* display Plymouth is rendering to, regardless of other
monitors’ resolutions, aspect ratios, or layout.
Actual behavior
With two monitors of different sizes/resolutions, the prompts appear shifted
right instead of centered.
Fix
Center all relevant elements using the active display’s width via
Window.GetWidth(0), and drop Window.GetX(). This avoids global framebuffer
offsets and centers on the display Plymouth selected.
Reproduction
- Two monitors with different resolutions/aspect ratios
- Encrypted root (to trigger Plymouth unlock prompt)
- Theme: ceratopsian
- Observe the prompt is not centered on the active display
Patch
A DEP-3–headed unified diff is attached. It replaces the four horizontal
position calculations with Window.GetWidth(0)-based centering.
Thank you.
-- System Information:
Debian Release: 13.0
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.38+deb13-amd64 (SMP w/20 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages desktop-base depends on:
ii fonts-quicksand 0.2016-2.1
ii librsvg2-common 2.60.0+dfsg-1
Versions of packages desktop-base recommends:
ii plymouth-label 24.004.60-5
Versions of packages desktop-base suggests:
ii kde-standard 5:162
-- no debconf information
Reply to: