Bug 4379 - Desktop cycling
Status: CLOSED FIXED
Alias: None
Product: Openbox
Classification: Unclassified
Component: general
Version: 3.4.8
Hardware: PC Linux
: P3 enhancement
Assignee: Dana Jansens
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2009-12-11 05:48 EST by Jonas Gehring
Modified: 2021-11-02 15:31:15 EDT
1 user (show)

See Also:


Attachments
The patch (1.92 KB, application/x-gzip)
2009-12-11 05:48 EST, Jonas Gehring

Description Jonas Gehring 2009-12-11 05:48:20 EST
Created attachment 2217 [details]
The patch

Hi,

Here's a small patch adding support for desktop cycling in Openbox. It offers
two new actions, namely DesktopCycleLeft and DesktopCycleRight. They are
basically working like NextWindow and PreviousWindow, but switching desktops
instead of windows.

The patch is attached to this report and should apply to the current
3.4-working branch (parent is 7ab904b). The cycling code itself is mainly taken
from actions/cyclewindows.c. I've also added a new version of
screen_show_desktop_popup() with a variable popup time.

 - Jonas
Comment 1 Dana Jansens 2009-12-16 11:03:47 EST
For the record: We purposely did not provide this action in Openbox because moving focus while the keyboard/mouse is grabbed would cause some applications to track their focus incorrectly.

With commit 11ecb7d2199d06b2929ba7e5d3c92c021038a0cc, I decided to no longer go this way.  So I think we can restore the old behaviour to all the desktop switch actions, making them interactive with the popup showing similarly to the window cycling one.
Comment 2 Dana Jansens 2009-12-16 15:43:06 EST
I made the existing desktop cyling actions "interactive", i.e. they show the popup while you hold the modifiers, in commit 8ea8a39073aecd45f512646715ee7095d2102f74

Thanks for your effort with the patch!
Comment 3 Jonas Gehring 2009-12-21 16:08:54 EST
Thanks for implementing, it seems to work great!

I've found a commit named 1a348576400b26dad3a58a81415c4c833fb4915c in your "work" branch which looks like the one I was searching for. I hope this change will make it into the next release.

 - Jonas
Comment 4 Dana Jansens 2009-12-21 16:25:35 EST
Ah yeh the commits changed a bit I think, but that's the one.  Glad it's working, it should be in the next release :)   Thanks for the feedback