#1037020 xfce4-panel: workspace switcher extremely wide after bookworm upgrade

Package:
xfce4-panel
Source:
xfce4-panel
Description:
panel for Xfce4 desktop environment
Submitter:
Marc Lehmann
Date:
2023-07-18 11:30:03 UTC
Severity:
normal
Tags:
#1037020#5
Date:
2023-06-01 19:47:23 UTC
From:
To:
Dear Maintainer,

after upgrading to xfce4-panel from bookworm, the workspace switcher has
become unusably large (wider than my screen).

after realising this is not configurable, I dug a bit into the code and
found that plugin->ratio is set to 7.1, which explains why the switcher
displays extremely elongated miniature views - it apparently assumes my
display has an aspect ratio of 7.1, when it actually has a ratio of 1.78
(standard full hd).

I found that the ratio is calculated differently in bookworm's panel:
before, it was screen width / screen height (which is 1.777.. on
my system). Now it takes the workspace width divided by workspace
height. Since my workspace is 8x2 screens in size, this results in 15360 / 2160,
or 7.1.

So it seems to apply the full workspace aspect ratio as if it were a
single screen inside the workspace.

I think either the ratio calculation is wrong, or some other code uses
this in the wrong way (workspace vs. single screen).

#1037020#10
Date:
2023-07-18 11:26:55 UTC
From:
To:
control: tag -1 unreproducible morinfo

Hi Marc,

thank you for your report, but I'm not sure I understand and/or
can reproduce it.

Using a fairly standard Bookworm install with Xfce, the workspace switch
seems just fine for me. I tried to configure the plugin to display using
two rows, then added 16 workspaces (to get a 8x2 layout like you) but it
seems to display just fine.

Could you take a screenshot or something to help us investigate?

Regards,