You are not logged in.

#1 2014-01-14 18:05:12

SimFox3
Member
From: San Jose, Ca
Registered: 2014-01-04
Posts: 42
Website

Gnome 3.10: Weird window focus behavior with mouse & Alt+Tab

Hi All,
I'm experiencing a really bizarre window focusing behavior with only XTerm windows.

1. Open XTerm and another app (e.g: Nautilus) -- stack them side-by-side but maybe a little overlapping so that it's apparent which app has focus.
2. Focus on Nautilus by CLICKING in the Nautilus window body or the window title
3. Tap Alt+Tab--notice that XTerm gets focus--this is the correct behavior
4. Give Nautilus focus again by CLICKING on window title
5. Now give focus to XTerm by either CLICKING on the window title or inside xterm window
6. Tap Alt+Tab--notice that nothing happens--this is because the WM just raised XTerm even though window already focus
7. Tap Alt+Tab again--and NOW Nautilus gets focus.

It seems as if raising XTerm via mouse click (or sloppy mouse mode) doesn't register with the WM that window is raised. Anyone know how to fix this?

Gnome 3.10.2 (Mutter WM)
XTerm v300

Very simple xterm.desktop (I even added StartupWMClass for good measure, but no affect):

[Desktop Entry]
Name=XTerm
#GenericName=Terminal
Comment=standard terminal emulator for the X window system
Exec=xterm
Terminal=false
Type=Application
Encoding=UTF-8
Icon=utilities-terminal
StartupWMClass=XTerm
StartupNotify=false
Categories=System;TerminalEmulator;

Offline

#2 2014-01-14 21:58:13

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 713

Re: Gnome 3.10: Weird window focus behavior with mouse & Alt+Tab

I installed xterm and does the same as you describe but I normally use gnome terminal which works fine. There's your fix!

Offline

#3 2014-01-14 22:56:23

SimFox3
Member
From: San Jose, Ca
Registered: 2014-01-04
Posts: 42
Website

Re: Gnome 3.10: Weird window focus behavior with mouse & Alt+Tab

@bulletmark LOL. gnome terminal doesn't support on the fly cursor shape changes (e.g: "\e[2 q", "\e[3 q", etc)--as you can probably guess; I'm a heavy Tmux/Vim user smile

Offline

Board footer

Powered by FluxBB