On Fri, Dec 08, 2000 at 06:09:37PM +0000, Dave wrote:
> One of the things I'd find quite useful is the ability to send a window to the
> next (or previous) workspace by using a keypress. As far as I can tell, bbkeys
> can't do this right now but it might be possible to allow this. Since I don't
> know the source code of bb itself or bbkeys, I thought I'd ask before trying
> it - is there a good reason why we shouldn't do this (feature creep?) or has
> anyone tried before? Or, is it going to involve rewriting bb to allow this
> (and thus be a Bad Thing) or will it just be a small hack on the interface to
> bb? If it's the latter, I'll even try to do that myself - unless someone else
> volunteers. But I don't want to get bogged down in something which is doomed
> to fail...
>
You will note that bbpager can move a window from one workspace to another.
If bbpager can do it, so can bbkeys.
Steps:
track down the movement code in bbpager. How this should work is bbpager finds
the window id of the window to move, then sends a message via a ClientMessage
event to blackbox telling it to move window_id to workspace N.
in the bbkeys sources, add another item 'Move window to next workspace',
previous workspace, and 'workspace N'. Add code so bbkeys sends the same
message you found in bbpager. Then modify the keybinding choosers to support
The new choices. For help, look at the implementation of StickWindow.
This should not involve any touching of blackbox code.