mixu / nwm

Tiling window manager for X11 written in Node.js
http://mixu.net/nwm/
MIT License
789 stars 72 forks source link

Google Chrome takes over the focus #6

Closed ashnur closed 13 years ago

ashnur commented 13 years ago

This happens usually a minute or two after session start. Whenever I try to change the focus, it seems that the focus passes normally, then it gets back to Chrome. I have further info on this, yet.

CrypticSwarm commented 13 years ago

I think that Chrome might set override-redirect. It is possible that this could be causing some of the problems.

mixu commented 13 years ago

I'm going to work on getting more useful logging for nwm so that these things can be better diagnosed remotely... over the weekend.

ashnur commented 13 years ago

Yesterday, while I was trying to get the nouveau driver working, I used nwm for 2-3 hours on a single monitor. Not continously but for searching and updating the libraries on my office machine and it worked fine. I am thinking that this focus grabbing-losing issue might be somehow related to the multi-monitor settings I had. I do not know if this makes any sense, I am going to test it again on monday.

vilmibm commented 13 years ago

I'm having a similar issue when i follow links from gnome-terminal; focus goes to chromium but if it's on another workspace i can't get focus back until i go to chromium and then go back to another workspace.

vilmibm commented 13 years ago

this has inexplicably worsened; i've been tweaking my nwm-user script but not adding anything crazy. now, chromium reliably steals my focus permanently. neither nwm or chromium were updated. i've been using w3m a lot more...

mixu commented 13 years ago

OK, got it replicated with chrome with gnome-terminal:

 echo http://google.com/ # then right click and follow the link 

Basically, the problem is that window focus is only changed by nwm when something happens - e.g. a mouse is moved over to a different window or meta+j / k is pressed. Other change focus requests are allowed by the window manager, hence focus stealing is possible.

It seems I tend to keep two active windows, so didn't notice this since moving the mouse to a different window sets the focus correctly.

mixu commented 13 years ago

This focus stealing issue should now be fixed in master, so I'm closing this but do let me know if it reoccurs. Give me a couple of days of running it on my machines to ensure that it's OK.

vilmibm commented 13 years ago

awesome, thanks so much. i had to switch back to unity on my work machine. for some reason the bug didn't crop up on my netbook, so i've been using nwm at home all this time. i suspect it's my much older version of chromium on that machine...

vilmibm commented 12 years ago

finally back to running nwm at work instead of just on my netbook. no focus issues. thanks so much!