Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cycling - Tiling vs Floating workspaces #105

Open
rmt opened this issue Feb 15, 2014 · 3 comments
Open

Cycling - Tiling vs Floating workspaces #105

rmt opened this issue Feb 15, 2014 · 3 comments

Comments

@rmt
Copy link

rmt commented Feb 15, 2014

In my opinion it would be nice to either make CycleClientNext/Prev more lightweight (raise & focus window, border-highlight only) so that it's more like AutoNext/AutoPrev; or make AutoNext/AutoPrev fallback to something sensible on a floating workspace. I'm coming from an openbox background, and find the approach there very intuitive (highlighting the window that you will switch to)

@BurntSushi
Copy link
Owner

I would very much like to have a border-highlight feature for the CycleClient{Next,Prev} commands. I think to add this, the CycleChoice interface in prompt/cycle_item.go would need to get a CycleUnhighlighted method. Then xclient/prompts.go would need to get some plumbing to add X windows-as-borders when CycleHighlighted is called and destroy those windows when CycleUnhighlighted is called.

@sgelb
Copy link

sgelb commented Oct 2, 2016

Just selecting the client by adding c.CycleSelected() to CycleHighlighted in xclient/prompts.go works just fine with my setup. Or do i miss something?

@sgelb
Copy link

sgelb commented Oct 2, 2016

Yes, I did miss some things.

  • canceling the prompt should be broken. When calling the prompt, I already know that I want to change clients, so I never used that feature.
  • c.CycleSelected() is called again on the same client when the keys are released. as it is called for each new selection anyway, this may be fine. a cleaner solution is mentioned in the comment for keyResponse() in prompt/cycle.go, setting CycleConfig.AutoChoose = false. But this doesn't seem to be implemented.

I use the prompt for changing clients only, so I don't know if this breaks things in regard of other uses.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants