bbidulock / icewm

A window manager designed for speed, usability, and consistency
Other
586 stars 99 forks source link

Browser window is not activated after clicking link #196

Open marcelkorpel opened 6 years ago

marcelkorpel commented 6 years ago

When I click a link in one application, e.g. Thunderbird or urxvt, the link is sent to my default browser (in my case Firefox). However, the browser window is not activated, as it was in 1.3.8.

gijsbers commented 6 years ago

Is there any effect? What proves that this is caused by IceWM?

marcelkorpel commented 6 years ago

This behaviour only popped up after installing IceWM from Github. But it is rather inpredictable, as I just clicked on the link to this issue in an email in Thunderbird and now the Firefox window is raised, as expected.

Couldn't it be related to focus (though I don't think so)? I'm now in 'quiet sloppy' mode (which is new to me) instead of 'sloppy'. I also can't find it in the manual in /usr/share/doc/icewm/icewm.htm.

marcelkorpel commented 6 years ago

And the effect is that the actual link is opened in a new tab in my default browser, only the window is not raised.

gijsbers commented 6 years ago

If you examine the output of xprop for the browser when it is raised and when it is not do you see differences? Try multiple times to get a consistent measurement.

marcelkorpel commented 6 years ago

I just had a whole series of non-raised and (after logging out and in again) raised windows after clicking on a link. I don't see any clear differences (apart from the obvious ones), only that _NET_WM_STATE(ATOM) is output earlier when a window is raised.

diff.txt

gijsbers commented 6 years ago

Does it help if you set RaiseOnFocus=1 ?

marcelkorpel commented 6 years ago

That is already the case. Strangely enough, I haven't seen this bug, the last days.

gijsbers commented 6 years ago

@marcelkorpel Did you ever see this again? And/or recently?

marcelkorpel commented 6 years ago

Yes, every now and then, alas. The last time was about two weeks ago.