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

Loosing focus after creating new tag in background #15

Closed
ghost opened this issue Dec 8, 2012 · 5 comments
Closed

Loosing focus after creating new tag in background #15

ghost opened this issue Dec 8, 2012 · 5 comments

Comments

@ghost
Copy link

ghost commented Dec 8, 2012

Hello,

after creating one tag in background (nopopup) the focus on my current window in my current tag is lost.

I'm using the shifty package of debian (testing).

Greetings

@alfredopalhares
Copy link
Collaborator

Hello,
Can you provide the exact procedure ?

Also you may consider that debian is not using this repository as source. Please ensure that.

@ghost
Copy link
Author

ghost commented Dec 11, 2012

Hello,

sorry for the unclear description.

I'm working on tag 1 with my windows (e. g. mostly xterm). Of course one xterm window has the focus, as i'm typing in this window. Now i'm creating a new tag with Mod4+Shift+A (creating new tag in background).

This results in not leaving my current tag (as wanted) but I loose my current active (focused) window. I stil can type in xterm, but I cannot change the windows with Mod4+j/k. The only way to get back the focus to any window is by moving the mouse pointer.

Maybe the pictures below show better the situation.

I uploaded the debian file under http://pastebin.com/YQ56zgjd
The difference between this file and your repository is mostly in getpos, I think.

Thanks for your help.

before_creating_tag
after_creating_tag

@bioe007
Copy link
Owner

bioe007 commented Dec 11, 2012

On Tue, Dec 11, 2012 at 9:24 AM, bastorran notifications@github.com wrote:

Hello,

sorry for the unclear description.

I'm working on tag 1 with my windows (e. g. mostly xterm). Of course one
xterm window has the focus, as i'm typing in this window. Now i'm creating
a new tag with Mod4+Shift+A (creating new tag in background).

This results in not leaving my current tag (as wanted) but I loose my
current active (focused) window. I stil can type in xterm, but I cannot
change the windows with Mod4+j/k. The only way to get back the focus to any
window is by moving the mouse pointer.

I'm not actually using anything like this version of shifty atm, so its
hard for me to debug, but:

  • Can you gist/pastebin the keybinding and any helper functions you're
    using to generate the new tag?
  • Do you have awful.autofocus enabled?
  • Is the focus moved to a rename prompt?
  • What happens to your client focus history? I'm looking at line 731:
    awful.client.focus.history.add(c)

as a potential problem.

perry

@ghost
Copy link
Author

ghost commented Dec 12, 2012

Hello,

I tried now with the shifty version of this repository. But it keeps still the same.

You can find my rc.lua under: http://pastebin.com/55xNW6aF

  • Keybinding is the following:
    awful.key({modkey, "Shift" }, "a", -- nopopup new tag
    function()
    shifty.add({nopopup = true})
    end),
  • No, there is no focused rename prompt
  • How can i check what happens to focus history?

Thanks for your help!

bioe007 pushed a commit that referenced this issue Feb 20, 2013
Restore previously focused client (issue #15)
@bioe007
Copy link
Owner

bioe007 commented Feb 20, 2013

I think PR #16 should close this.

@bioe007 bioe007 closed this as completed Feb 20, 2013
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

No branches or pull requests

2 participants