Hey Yves-Alexis,

thank you for your response.

On 20.06.2025 o 08:59, Yves-Alexis Perez wrote:
Could you report this directly upstream because while I think it might be
worth double-checking for division by zero, there's something fishy here
(maybe with GDK as you said) and I think upstream would be better to check
that.

Reported to the upstream: https://gitlab.xfce.org/xfce/xfwm4/-/issues/867


On 20.06.2025 o 08:59, Yves-Alexis Perez wrote:
Also not that in my case the monitor_width seems wrong (1920×1080 is the size
of my laptop display but I'm currently docked to a 3840x2160 display which
should be used for the calculation).

This seems to be intentional, the code selects the minimum screen width:

  xfwm4-4.18.0/src/tabwin.c
  344 static int
  345 getMinMonitorWidth (ScreenInfo *screen_info)
  346 {
  347     int i, min_width, num_monitors = myScreenGetNumMonitors (screen_info);
  348     for (min_width = i = 0; i < num_monitors; i++)
  349     {
  350         GdkRectangle monitor;
  351         xfwm_get_monitor_geometry (screen_info->gscr, i, &monitor, FALSE);
  352         if (min_width == 0 || monitor.width < min_width)
  353             min_width = monitor.width;
  354     }
  355     return min_width;
  356 }

  xfwm4-4.18.0/src/tabwin.c
  639 static void
  640 computeTabwinData (ScreenInfo *screen_info, TabwinWidget *tabwin_widget)
  641 {
  [...]
  655     tabwin->monitor_width = getMinMonitorWidth (screen_info);


On 20.06.2025 o 08:59, Yves-Alexis Perez wrote:
 Maybe it's something similar for you (in case you have a smaller display 
attached)?

Unfortunately, this is not my case. I don't have a smaller display.


Ragards,
Adam.

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to