linuxmint / cinnamon

A Linux desktop featuring a traditional layout, built from modern technology and introducing brand new innovative features.
GNU General Public License v2.0
4.55k stars 740 forks source link

Window focus utterly broken #7970

Open ocket8888 opened 6 years ago

ocket8888 commented 6 years ago
 * Cinnamon version - 3.8.9 (problem existed with earlier versions)
 * Distribution - Manjaro Cinnamon 18.0.0 (Arch), but was able to reproduce problem on Linux Mint Cinnamon 18.1, 18.2 and 18.3 (same GPU, but CPU and motherboard now different)
 * Graphics hardware *and* driver used - NVIDIA Corporation GM200 [GeForce GTX 980 Ti] (rev a1), was able to reproduce problem with both noveau and proprietary NVIDIA drivers
 * 32 or 64 bit - 64 bit
 * Attach /home/<username>/.xsession-errors, or /var/log/syslog - http://www.filedropper.com/xsession-errors

Issue I apologize for the vague title, but as I hope to explain it's a vague problem. I've tried to run Cinnamon several times and it's had this problem for years: window focus is broken on several levels, and appears to be somehow separate for mouse and keyboard.
With no windows open, everything functions normally, I can open the menu, click on launchers, etc.
After opening 1 window, my ability to interact with the taskbar in any way is gone. I can still press \<SUPER> to open the menu, but typing after doing so will pass keyboard input to the window e.g. if I did it right now I'd be typing in this issue entry text box instead of the menu search, though the menu would remain open until I hit \<SUPER> again (\<ESC> doesn't close it). Furthermore, while I'm free to use the mouse to click on things within the window, the titlebar is totally inaccessible. I can't drag or resize the window, nor close, minimize or maximize it using the top-right buttons. Once a second window opens, it is completely untouchable with the mouse, neither the titlebar nor anything within the window can be interacted with via the mouse. I'm still able to switch "keyboard focus" to the window by using \<ALT>+\<TAB>, thus allowing me to type and attempt to navigate menus via \<TAB>, but mostly it's unusable unless it's a terminal. Interestingly, even while the "keyboard focus" is on this second window, if I position it on top of the original window my clicks will go through it and interact with elements on the original window as though it weren't there. This doesn't bring the original window to the forefront. If the second window is a "sub window" spawned by the application using the first window (e.g. a browser alert window), I can occasionally see interface elements flicker when I click them, almost as if a click was being "downgraded" to a hover. When this happens, my clicks do not propagate through the window and onto the parent window, but they still do absolutely nothing to the new window.

Steps to reproduce I honestly don't know. Nobody in the forums has been able to reproduce, and this issue manifests not only in fresh installs but in the LiveCD environment, so it's not as if it's anything I've actually done. I'm convinced - for some reason I forget from long ago - that it has something to do with my monitors. One is a 4k monitor, and the other is a 1080p TV. They work fine in Windows and have operated pretty well in Gnome3 (though it also experiences much, much smaller issues - plus I hate it), but I've always had problems with Cinnamon, which I've experienced working fine with single monitor set-ups.

Expected behaviour I mean, I'd expect windows to be able to gain and lose both mouse and keyboard focus, and for the taskbar and titlebars of windows to both work.

Other information

ocket8888 commented 5 years ago

Gnome3 does actually experience this issue, just to a somewhat lesser degree. I was able to find out that mashing right and left click on the object of my frustration can actually cause the focus to swap appropriately in Gnome3 - but in no other DE I've ever tried.

nadalle commented 5 years ago

I saw your forum post and just thought I'd mention this here:

Your monitor and graphics card setup looked fairly ordinary, but I didn't see any indication of what your keyboard and mouse are. Since the problem only occurs for you and happens across different distros, WM's, and OSes it seems like it must be hardware-related.

I assume anyone working on this bug will also want your inxi data, but I thought it might be useful to post that. If it's anything interesting, have you tried with very ordinary input hardware?

ocket8888 commented 5 years ago

Problem has persisted with multiple keyboards and mice. I can try swapping them out again later or maybe tomorrow, but fwiw the current keyboard is a Logitech G510s and the mouse is a R.A.T. 9 TE

nadalle commented 5 years ago

Please see this link about the rat mouse which seems to match your symptoms.

https://wiki.archlinux.org/index.php/Mad_Catz_Mouse

On Mon, Apr 8, 2019, 11:04 AM ocket8888 notifications@github.com wrote:

Problem has persisted with multiple keyboards and mice. I can try swapping them out again later or maybe tomorrow, but fwiw the current keyboard is a Logitech G510s and the mouse is a R.A.T. 9 TE

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/linuxmint/cinnamon/issues/7970#issuecomment-480940841, or mute the thread https://github.com/notifications/unsubscribe-auth/ADRCXr8bp_WlYeFieRhBy3reGI3k3n0-ks5ve4SogaJpZM4YDtgs .

YanChii commented 4 years ago

The bug is still there. Changing the mouse doesn't help (Logitech, Gigabyte, just ordinary mice, same result). The bug doesn't affect keyboard. I can Alt+Tab without a problem but mouse works only within the active window and I cannot touch anything else.