Page 1 of 1

Window Focus is weird

Posted: Tue Apr 18, 2017 2:52 am
by ocket8888
I don't really know how else to describe it. I have a (basically) fresh install, wiped the disk, version 18.1 Cinnamon 64-bit, nothing really unusual about the install unless an encrypted /home/$USER counts. I have an NVidia 980Ti, and the proprietary drivers from the "Hardware" settings menu didn't work well for me, so I went to their website and used the weird compressed script installer thingy. Everything's fine as far as the display (actually, I have one 4k monitor and one 1080p and the scaling is hard to get right; I messed with xrandr for a bit to disastrous effect but that's a different story), but the windows won't hold focus. Basically, from login everything's okay, but if I open up too many windows - or I've noticed it particularly hates when applications spawn "sub-windows" or whatever they're called - I get keyboard focus on a window, but I can't click on anything. I haven't worked out any kind of pattern to it, but there's usually a window that holds mouse focus for whatever reason, and if I have other windows on top of that one, my clicks will go right through them and interact with the window I can't even see (this happens with those "sub-windows" and other applications).

To make matters worse, this means I can't move windows when one of them holds focus. I've also noticed that when I switch workspaces the Desktop has focus. Like, if I push the Super key, the Menu will open, but if I type anything no text appears and instead it highlights desktop icons that match what I'm typing. Clicking on the Menu when this happens just causes the clicks to go through and hit any icons beneath it. The panel also can't be clicked, not the pinned applets, not the "Menu" button, and nothing in the system tray. Also possibly related: the default keys for Expo and Scale weren't working, so I added the custom shortcuts Shift+Super+Up and Shift+Super+Down to them respectively. That didn't work, so I'm thinking the issue isn't with the keys, just with Cinnamon and window focus and junk.

I could probably take a video if that would help clarify, but I'm not sure how to do that, or if I can without installing something (which I'll do if you tell me what), but I'm worried that the focus stuff itself may mess with taking a video. I like to think I'm fairly competent with the terminal, but I'm not familiar at all with customizing Gnome or Cinnamon, so I can get you any information you think'll help I just don't know what/where that is. So far I've managed to get around by just Alt-TAB-ing and TAB-ing through window controls, but that's nigh on impossible for certain websites. I don't know why Alt-TAB works but Expo and Scale don't.

Oh, and btw, my window focus mode is set to "Click" (but like I said clicking just ghosts through). I've messed with the focus settings quite a bit, but I'll post the current settings in a screenshot in a second (I'm typing this on my laptop because of how aggravating this window thing is)

Clarification: By "too many windows" I mean usually 2 is fine and around 3 breaks it (I think it depends on whether I open the Menu, which seems to be related)

EDIT: Not sure if related, but I've noticed that the cinnamon --replace process is taking up nearly 4GB of system memory, while looking glass reports only a few hundred MB.

UPDATE: I'm convinced there's a memory leak somewhere, because cinnamon --replace is now taking up over 10GB of system memory. Which is a problem because I only have 8GB of RAM. Also, here's that screenshot I promised you
https://s17.postimg.org/ezrw5asm7/Scree ... -47-54.png

Re: Window Focus is weird

Posted: Tue Apr 25, 2017 10:13 pm
by ocket8888
Welp. Nobody ever responded, not sure if this is a dead OS or what, but I needed a usable operating system, so I installed Windows. Good luck to anyone else with the same issues, I guess, because I can't help troubleshoot this anymore.

Re: Window Focus is weird

Posted: Tue Apr 25, 2017 10:19 pm
by richyrich
Dump Cinnamon, and replace it with either the MATE or Xfce edition. :-)

Just browse through the forum posts and you will find most every problem similar to what you describe, can all be attributed to the Cinnamon desktop.

Re: Window Focus is weird

Posted: Wed Apr 26, 2017 12:43 am
by arsuk
I agree with richyrich. Cinnamon is clearly under development and has problems with anything but well known graphics and dual displays. I quite liked it on my desktop PC where it worked with only the occasional focus problem. But MATE does not have any of these problems, basically does the same as Cinnamon and added the bonus of being more lightweight which is good for my older PCs. So if you want reliability use MATE and the resulting environment is better than any Windows :D

Re: Window Focus is weird

Posted: Wed Apr 26, 2017 1:32 am
by JosephM
richyrich wrote:Dump Cinnamon, and replace it with either the MATE or Xfce edition. :-)

Just browse through the forum posts and you will find most every problem similar to what you describe, can all be attributed to the Cinnamon desktop.
You're ignoring that he says he is using a 4k display. How well do those two desktops work with HiDPI? They probably aren't the answer either.

Re: Window Focus is weird

Posted: Wed Apr 26, 2017 8:00 am
by richyrich
I'm on Mint 17.3 Xfce and it has HiDpi settings and themes installed by default, so I'm pretty sure it will also be in Mint 18.1 Xfce too. :)