Windows constantly lose focus at random

Questions specific to the KDE DE go here
GreeningGalaxy
Posts: 9
Joined: 02 Sep 2014 16:57

Windows constantly lose focus at random

Postby GreeningGalaxy » 02 Sep 2014 17:07

I just installed SolydK on my HP Envy touchscreen laptop (moving away from Kubuntu due to stability issues) and so far it's worked great, but for one rather annoying issue: no window can seem to hold focus for more than about 30 seconds, usually less. It's completely random as far as I can tell, but sometimes appears to favor losing focus immediately after I start typing in whatever window it is, and changing the focus stealing prevention settings, moving the focus-selection policy slider all the way over to 'hover' and everything else I've tried has had absolutely no effect (even with focus policy set to hover, I still have to click on the window in order to refocus it.) I've had to re-click on the text entry window about seven or eight times so far just to type this post.
Anyone seen this before or know what might cause it?

GreeningGalaxy
Posts: 9
Joined: 02 Sep 2014 16:57

Re: Windows constantly lose focus at random

Postby GreeningGalaxy » 02 Sep 2014 18:33

I found a suggestion on a different forum to delete Thunderbird, which was apparently creating a background notification spam that was grabbing focus for some reason. Doing this fixed the problem temporarily, but now, one reboot later, it's back (with slightly lower frequency) and Thunderbird's still gone, so I can't delete it again. I'm gonna try reinstalling thunderbird, but I hope that's not the solution because it would be a massive pain to have to install and delete a 65-megabyte program every time I boot my system just to keep my window focus. :|

User avatar
disciple1964
Posts: 95
Joined: 03 Jan 2014 04:33
Location: Irving, Texas

Re: Windows constantly lose focus at random

Postby disciple1964 » 02 Sep 2014 22:41

Hello,

Without some type of troubleshooting, I think it would be hard to come up with a answer. Can you help out with answering some questions?

1. Can you help out with posting the results of this command: inxi -Fzx
2. Are you using proprietary video drivers? or the noveau drivers
3. If you are dual booting, does it do this in another OS?
4. Has it done this since you installed SolydXK or is this more recent?
5. Are there any errors that come up in logs or on the screen?
6. Try changing the video cable from monitor to laptop and see if it becomes clearer
7. Have you checked the HP forums to see if anyone else has had this issue.
8. It's possible that thunderbird was never the issue, if you have uninstalled and then the issue is still there.
9. Check your setting under desktop effects, do you have magnifier turned on? or maybe Blur?
10. do you have other windows open in the background?
11. Go through your desktop effects and turn them off, then turn them back on one by one. If you turn it off and the problem goes away, then something could be checked that is causing the issue. Turn them back on one by one until the problem comes back and the last one you turned on, is probably the one causing the issues.

While you may think the issue is with SolydXK, it could very well be a hardware error also. I noticed you have a touchscreen Monitor, have you checked to make sure that you are using the correct cable. My wife has a touchscreen and her monitor would blank out or become fuzzy. After weeks of troubleshooting and thinking the 300+ dollar screen was bad, come to find out the HDMI cable she was using was not rated for Hdef video. Yes it does matter and makes a world of difference. Since changing the HDMI cable her screen works perfectly and is very clear.

However if the laptop monitor itself is doing this and you are not using a external monitor. Then most likely this could be a issue with the video chip or display screen itself.

Hope this helps

Lenovo T61P-6gigs-15.1Screen-250gig hard drive / Desktop: Quad core Intel Core i7-4790K CPU Kernel~3.19.0-49-generic x86_64 Mem~1621.5/15928.2MB HDD~1120.2GB
Registered Linux user 566308

GreeningGalaxy
Posts: 9
Joined: 02 Sep 2014 16:57

Re: Windows constantly lose focus at random

Postby GreeningGalaxy » 14 Sep 2014 23:41

Sorry for not posting in so long!
I did find a solution to the problem, though- I went into the Window Rules settings and added a rule preventing anything that's a toolbar or panel from accepting focus. It's worked well. I guess the toolbars were getting focus at random times for some reason?

User avatar
TeaSwigger
Posts: 57
Joined: 27 Feb 2013 14:07

Re: Windows constantly lose focus at random

Postby TeaSwigger » 17 Sep 2014 04:30

When I was using the "desktop sticky notes" post-it thing a while back, the focus would shift like you describe. After closing the note app, everything's back to normal (so I don't use it). Perhaps some panel / plasma apps grab focus when they shouldn't? In any case, thanks for posting your findings.
"You can't get to wonderful without passing through alright" -Bill Withers

SolydK 64-bit - AMD Quad Core - 4GB RAM - accursed NVIDIA GeForce 5800 graphics - lovely ASUS Xonar Essence ST sound

GreeningGalaxy
Posts: 9
Joined: 02 Sep 2014 16:57

Re: Windows constantly lose focus at random

Postby GreeningGalaxy » 17 Sep 2014 20:25

As far as I can tell, it's the alt-f2 run prompt that's doing it. My fix kept focus from getting lost all the time, but I also noticed that it's been impossible to type in the alt-f2 prompt ever since I implemented it. This is only a minor annoyance (I can just use Yakuake for most things with the same number of keypresses and clicks), but I'm not quite sure where I would go from here if I were particularly interested in re-enabling the alt-f2 prompt.

User avatar
Snap
Posts: 1244
Joined: 25 Aug 2013 20:01
Location: Spain

Re: Windows constantly lose focus at random

Postby Snap » 17 Sep 2014 20:41

Krunner is working fine here. But (though I never use it neither like it) the free floating window mode works like crap. Do you have it floating?
This likely means that your installation is broken. -Mr Pixbuf.

Image


Return to “KDE specific (SolydK)”

Who is online

Users browsing this forum: No registered users and 2 guests