! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Shortcut key for "Show Desktop"
Status:
RESOLVED: FIXED
Severity:
enhancement

Comments

Description Pasi Orovuo 2005-01-23 11:49:39 CET
A shortcut key for hiding all visible windows on current workspace.
Comment 1 Pasi Orovuo 2005-01-23 11:52:04 CET
Created attachment 166 
Patch to add requested functionality
Comment 2 Olivier Fourdan editbugs 2005-01-23 19:43:33 CET
Sorry, but show desktop is already implemented in xfwm4 and conforms to the EWMH
specifications, it would be good to use that instead of a loop to hide all clients.
Comment 3 Pasi Orovuo 2005-01-23 19:53:00 CET
Created attachment 169 
Improved version

The shortcut keys now toggle showing of desktop, i.e. if there are visible
windows they are hidden, otherwise windows are restored. For this I also
modified clientToggleShowDesktop() (client.c:2195) to take current workspace
into account. Does this break or violate some rules Xfce tries to conform to?
Comment 4 Pasi Orovuo 2005-01-24 08:40:20 CET
Created attachment 170 
Hopefully EWMH compliant

Hopefully this is now EWMH compliant. In current state this does have a slight
defect, though. But I'm not alone, the show desktop panel plugin will also
suffer of this defect if I've got it right... If windows are restored from
taskbar instead of the shortcut key the _NET_SHOWING_DESKTOP hint won't get
updated, so another press of "Show Desktop" will result in rest, if any, of the
windows being restored instead of hiding the visible windows as one would
expect. Perhaps I'll try to look in taskbar code in order to fix this.
Comment 5 Olivier Fourdan editbugs 2005-02-01 21:56:22 CET
I'm sorry, but that patch is wrong, it just duplicate code that is already is in
xfwm4.
Comment 6 Olivier Fourdan editbugs 2005-02-01 23:05:38 CET
Sorry for my previous statement, I misread your code. I applied a slightly
modified version to HEAD.

Thanks!
Olivier.

Bug #736

Reported by:
Pasi Orovuo
Reported on: 2005-01-23
Last modified on: 2009-07-14

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Attachments

Patch to add requested functionality (9.06 KB, patch)
2005-01-23 11:52 CET , Pasi Orovuo
no flags
Improved version (10.97 KB, patch)
2005-01-23 19:53 CET , Pasi Orovuo
no flags
Hopefully EWMH compliant (12.14 KB, patch)
2005-01-24 08:40 CET , Pasi Orovuo
no flags

Additional information