Incorrect window size in full screen with 2 panels

Bug #1999342 reported by BardzoTajneKonto
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Compiz
New
Undecided
Unassigned

Bug Description

If 2 panels are added on the same side (for example bottom), window size is incorrectly calculated after it's maximized. In the attachment in can be seen that if there are upper and lower panels, status bar is visible after the window is maximized. But when both panels are at the bottom, status bar is covered by one of the panels. This happens for every window I've tried and only in compiz as a window manager.

Compiz version: 0.9.14.1 (Mint Mate 21).
It used to work correctly, for example in version 0.9.13.1 with Mint Mate 19.

Revision history for this message
BardzoTajneKonto (bardzotajnekonto) wrote :
Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

Run `xprop | grep STRUT` and click on first panel then repeat with second panel. Post both output here.

But this is bug in `mate-panel`. The problem most likely is caused by new strut property! `compiz` is ignoring strut because "top" panel (panel over bottom panel) strut is not at monitor edge. If MATE support such configuration then it needs ensure that it correctly reports strut / reserved space.

Revision history for this message
BardzoTajneKonto (bardzotajnekonto) wrote :

Lower panel:
```
_GNOME_WM_STRUT_AREA(CARDINAL) = 0, 1053, 1920, 27
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 1919
_NET_WM_STRUT(CARDINAL) = 0, 0, 0, 27
```

Upper panel (when both are at the bottom):
```
_GNOME_WM_STRUT_AREA(CARDINAL) = 0, 1029, 1920, 24
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 51, 0, 0, 0, 0, 0, 0, 0, 1919
_NET_WM_STRUT(CARDINAL) = 0, 0, 0, 51
```

> But this is bug in `mate-panel`

Possible. But with marco or metacity this works correctly.

Revision history for this message
Albert van Osch (avanosch) wrote :

I have the same problem, only with dual screen panels. The 2nd screen panel is ignored by compiz.
I can confirm other Window Managers do not have this problem.

Here are my outputs: (left & right panels)
_GNOME_WM_STRUT_AREA(CARDINAL) = 0, 1053, 1920, 27
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 0, 1919
_NET_WM_STRUT(CARDINAL) = 0, 0, 0, 27

_GNOME_WM_STRUT_AREA(CARDINAL) = 1920, 1053, 1920, 27
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 1920, 3839
_NET_WM_STRUT(CARDINAL) = 0, 0, 0, 27

I found a workaround:
When disabling "Expand" in Panel Properties, Compiz can "see" the panel.

After doing this, the output of ´xprop | grep STRUT´ changes to:
_GNOME_WM_STRUT_AREA(CARDINAL) = 2449, 1053, 861, 27
_NET_WM_STRUT_PARTIAL(CARDINAL) = 0, 0, 0, 27, 0, 0, 0, 0, 0, 0, 2449, 3309
_NET_WM_STRUT(CARDINAL) = 0, 0, 0, 27

Revision history for this message
Alberts Muktupāvels (muktupavels) wrote :

@bardzotajnekonto Metacity version? I have no time to check but it might work because metacity is ignoring `_GNOME_WM_STRUT_AREA` strut as it is invalid (it is not at screen edge) AND fallback to `_NET_WM_STRUT_PARTIAL` which has strut with both panel height - 51px.

According to spec WM should use older strut version only if newer are not present. So actually metacity should not use older strut... So it works by luck.

@avanosch Your bug is different. If your panels are really vertical panels then _GNOME_WM_STRUT_AREA struts are wrong - struts are set as if panels would be horizontal...

Revision history for this message
BardzoTajneKonto (bardzotajnekonto) wrote :

> Metacity version?

1:3.44.0-1

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.