Bug#1032412: no message at dual screen

Gert van de Kraats <vd.Kraats-8LkvcxCLB6JmR6Xm/[email protected]> Wed, 22 Mar 2023 16:14:36 +0100
Newsgroups gmane.linux.debian.devel.desktop
Message-ID <b9fabc92-6d4a-29a2-7173-5427a7b1be23__36651.3076399983$1679499753$gmane$org@hccnet.nl>
I have the same problem at dual screen with sizes 1280 x 1024 and 1280 x 
800.

New debian-logo tries to write the message "resuming from hibernation" 
below borh screens.

This is caused by wrong computation of max height.

In my case it computes 2 * 112 + 1024, which should be only 1024.

.Problem occurs at /usr/share/plymouth/themes/emerald/emerald.script.

Next patch solves the problem for me :diff --git 
a/emerald-theme/plymouth/emerald.script 
b/emerald-theme/plymouth/emerald.script

--- a/desktop-base-12.0.5/emerald-theme/plymouth/emerald.script
+++ b/desktop-base-12.0.5_b/emerald-theme/plymouth/emerald.script
@@ -119,7 +119,8 @@ fun TextYOffset() {
      #Debug("y = " + y);

      text_height = first_line_height * 7.5;
-    min_height = window_max.height - 2 * first_line_height;
+    # subtract Window.GetY() to show info also at smallest of dual srceens
+    min_height = window_max.height - 2 * first_line_height - Window.GetY();
      #Debug("text_height=" + text_height + "; min_height=" + min_height);

      if (y + text_height > min_height)
@@ -131,8 +132,8 @@ fun TextYOffset() {

  #----------------------------- Screen/window setup 
---------------------------
  # Compute screen/image ratio and scale the background accordingly
-window_max.width = Window.GetX() * 2 + Window.GetWidth();
-window_max.height = Window.GetY() * 2 + Window.GetHeight();
+window_max.width = Window.GetWidth();
+window_max.height = Window.GetHeight();
  screen_ratio = window_max.width / window_max.height;
  small_dimension = Math.Min(window_max.width, window_max.height);
  #Debug("Window.GetX():" + Window.GetX() + ", Window.GetY():" + 
Window.GetY());