! 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 !
new keybinding to toggle raise/lower a window
Status:
RESOLVED: FIXED
Severity:
enhancement

Comments

Description Jose Marino 2011-05-03 02:33:13 CEST
Created attachment 3649 
patch that adds new keybinding to toggle raise/lower a window

I include a patch to add a new keybinding to xfwm4.
The idea is to add a new keybinding action that raises a window if it's obscured by other windows, or lowers it if it's not. In effect it combines Raise Window and Lower Window into one toggling action.

This feature is found in most other window managers and I really miss it in xfwm4.
There's also an entry requesting this feature in the wishlist section of the wiki:
"Add Amiga OS style z-order toggle button. (Logic: If the window is anywhere other than at the front of the z-order, bring it to the front, otherwise, send it to the back.)"

The patch applies on top of current git master (commit 3fdb3ef440a).
Comment 1 Jose Marino 2011-05-03 02:42:19 CEST
Created attachment 3650 
patch that adds new keybinding to toggle raise/lower a window

I just noticed a stupid mistake in the patch. The TRACE line refers to variable 'wsibling' which is not defined in the new function. I copy/pasted those lines from function clientLower.

Here's the corrected patch.
Comment 2 Jose Marino 2011-05-05 05:47:43 CEST
Created attachment 3654 
patch that adds new keybinding to toggle raise/lower a window

Fix overlap detection.
Comment 3 Jose Marino 2012-05-04 16:06:25 CEST
This functionality was added with commit 6fe0c571 in 4.10

I'm marking the bug as resolved.

Bug #7565

Reported by:
Jose Marino
Reported on: 2011-05-03
Last modified on: 2012-05-04

People

Assignee:
Olivier Fourdan
CC List:
0 users

Version

Attachments

Additional information