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

Start selection of menu items at index 0 #2

Closed
wants to merge 3 commits into from

Conversation

jchnkl
Copy link

@jchnkl jchnkl commented Apr 9, 2013

The menu items appear always in the same order. Therefore selecting the
second item (0-based list) appears to be a bit arbitrary, as it is
sometimes the currently focused window, the next window or some other
window.

Not sure about this, maybe the window ordering is wrong because my wm (xmonad) sets them wrong?

If I open a couple of windows, each on a separate workspace, the window/workspace order seems always to be the same, regardless which one was focused last.

Focusing the 2nd element of this list creates additional confusion.

The menu items appear always in the same order. Therefore selecting the
second item (0-based list) appears to be a bit arbitrary, as it is
sometimes the currently focused window, the next window or some other
window.
@seanpringle
Copy link
Owner

The menu items should definitely change order according to the window stack, because simpleswitcher reads _NET_CLIENT_LIST_STACKING. This property is correctly maintained by various window managers, but I've never tested with xmonad.

When the menu order does successfully update, initially selecting the second item makes for easy toggling between the top two windows. My assumption is that one would rarely want to activate the window already on top of the stack.

How about making the initial item selection a command line option?

For specifying which item gets selected first when calling
simpleswitcher.
@jchnkl
Copy link
Author

jchnkl commented Apr 10, 2013

Here you go. :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants