Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 321177 - lxde-base/lxpanel "show desktop"-icon hides custom panels in LXDE
Summary: lxde-base/lxpanel "show desktop"-icon hides custom panels in LXDE
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: LXDE team (DEFUNCT)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-23 13:23 UTC by Guenther Brunthaler
Modified: 2012-08-09 21:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Script to make "vanished" panels reappear (lxpanel-restart,881 bytes, text/plain)
2010-05-23 13:26 UTC, Guenther Brunthaler
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guenther Brunthaler 2010-05-23 13:23:21 UTC
When clicking the "show desktop" icon in LXDE, all windows are minimized except the main lxpanel window.

The problem is that custom-defined additional lxpanel panels (such as a shortcut launchbar) are also hidden when that button is pressed.

If a custom shortcut panel was added to the left screen border, for instance, this creates a "reserved" area with the dimensions of the (now hidden) panel, where no windows can be placed.

However, the panel is hidden and therefore unaccessible.

Reproducible: Always

Steps to Reproduce:
1. Create an additional panel using the lxpanel configuration menu, say a panel along the left screen border and add some entries to the panel, allowing the panel to be identified visually.
2. Start some normal X11 application which has a windows, such as xclock.
3. Now press the "show desktop"-icon. All windows - including the left panel - should disappear! This is the first bug.
4. Now, press the "show desktop"-icon again. All windows should reappear, including the left panel.
5. Press the "show desktop"-icon again to hide the windows including the left panel once again.
6. Now click on the icon of the running xclock application in the taskbar in the main lxpanel panel. The xclock windows should reappear, but none of the other hidden windows - including the hidden left panel.
7. Press the "show desktop"-icon once more: Instead of restoring the remaining hidden windows (such as the left panel), it will forget about them and just hide the only visible windows, that is the xclock window.
8. If the "show desktop"-icon is pressed again, only the xclock windows will be restored, but never again the hidden left panel will be restored. This is the second bug.
Actual Results:  
If the "show desktop"-icon "sees" just a single no-hidden window, it assumes that there are no hidden windows at all and that the desktop is in the "non-hidden" state. It then hides the currently visible windows, but forgets about all the windows still hidden by a previous invocation of the "show desktop"-icon.

Expected Results:  
LXDE should remember which state it is in, either "some or all windows have been hidden by lxpanel to show the desktop and should be restored later" or "normal operation with no windows to be restored later".

I am not sure whether this is an actual LXDE bug, an openbox bug, an lxpanel bug or just an error in the Gentoo default configuration as created by the ebuild.

In any case, the "show desktop"-icon's operation is severely restricted by that issue.
Comment 1 Guenther Brunthaler 2010-05-23 13:26:48 UTC
Created attachment 232575 [details]
Script to make "vanished" panels reappear

The attached script provides an ugly workaround for the described situation.

If a custom panel becomes inaccessible, run the script in order to make it reappear.
Comment 2 Wormo (RETIRED) gentoo-dev 2010-06-04 07:01:44 UTC
Thanks for the detailed report on this issue, hopefully the lxde team will have ideas on where the blame lies
Comment 3 Víctor Ostorga (RETIRED) gentoo-dev 2012-08-09 21:04:55 UTC
(In reply to comment #0)
> When clicking the "show desktop" icon in LXDE, all windows are minimized
> except the main lxpanel window.

I guess you're referring to the "Minimize all windows" button

> 
> The problem is that custom-defined additional lxpanel panels (such as a
> shortcut launchbar) are also hidden when that button is pressed.
>
As of lxpanel-0.5.10 this doesn't happen
 
> If a custom shortcut panel was added to the left screen border, for
> instance, this creates a "reserved" area with the dimensions of the (now
> hidden) panel, where no windows can be placed.
> 
> However, the panel is hidden and therefore unaccessible.

As of lxpanel-0.5.10, this doesn't happe

...
...
...

> Expected Results:  
> LXDE should remember which state it is in, either "some or all windows have
> been hidden by lxpanel to show the desktop and should be restored later" or
> "normal operation with no windows to be restored later".
> 
> I am not sure whether this is an actual LXDE bug, an openbox bug, an lxpanel
> bug or just an error in the Gentoo default configuration as created by the
> ebuild.
> 
> In any case, the "show desktop"-icon's operation is severely restricted by
> that issue.

Right click the "Minimize all windows" button, left click on "Minimize all Windows Settings" and check the option "Alternative iconify/shade and raise".
This will make the button minimize and restore only the previously shown in desktop windows.