Hot answers tagged focus
Some Window Managers have a lot of customizability to do stuff like this, but a lot more recent ones including metacity and compiz have lost this kind of customization. I used to use fvwm to do stuff like that. A simpler WM independent approach would be to try and reassign focus back to the right window. Look at the xdotool ...
You can use the script windows_switcher from web::irssi::scripts Download the perl file and put it in ~/.irssi/scripts/autorun/. This is the short help contained in the file itself: # Usage: # * Add the statusbar item: # /STATUSBAR window add window_switcher # * Type /ws followed by a window number or part of a window or channel name. # * When the ...
Settings manager >> window manager >> focus tab. Uncheck automatically give focus
Most modern dekstops are EMWH compliant. You can use wmctrl to control those and the windows on them, e.g.: wmctrl -a <WIN> to activate a window by switching to its desktop and raising it (<WIN> can be various things, by default a string match on the window title, see the wmctrl man page).
FWIW, with xterm, click on the left mouse button while holding the Ctrl key to bring a menu where you can select secure keyboard. which uses XGrabKeyboard to get exclusive usage of the keyboard. You can also bind it to a key such as with: xterm -xrm 'XTerm.VT100.translations: #override Shift <KeyPress> F2: secure()' For Shift-F2. Though you'd ...
You could use xdotool. I have used it to resize browser windows. $ xdotool windowfocus 0x280000a
What you see is the normal way of twm to handle the mouse focus. The method is called focus follows mouse. Since 1989, twm was the default window manager of the X Window System. That means that it is a reference implementation, like other default components of X. Most reference implementations of other X components had incremental changes since that ...
Somehow it occurred to me that this might be caused by unclutter utility I had recently installed. Turns out that is the culprit. Once I knew it, I was able to find that the issue has been reported already, for example here: http://askubuntu.com/questions/3022/weird-mouse-problem. Also, I found an alternative called hhpc: https://github.com/Aktau/hhpc. ...
You're not saying which window manager you're using under gnome. Most common ones are metacity, compiz (and gnome-shell in new versions of gnome) though you can use any you like (though some integrate better with gnome than others). For openbox, change your configuration file (something like ~/.config/openbox/rc.xml which you can copy from ...
An alternative is to have the program connect to a different X server. You can either run a separate instance of X on a different virtual console. Switch with e.g. Ctrl-alt-F8. run Xnest to have an X server acting as a client to the main Xserver Either way, your testing script should set DISPLAY to redirect the program to the other X server (it will ...
USB keyboards often expose multiple interfaces; it is likely that one is the standard 104-key set and another is the extra buttons. MPWM is a simple window manager that is able to use the MPX extensions to allow for multiple independent client pointers and active windows. You'll have to wait for similar support to appear in other window managers. Xephyr ...
I managed to solve this by using a wmctrl call at the end of my .zshrc file wmctrl -i -a $(wmctrl -l | grep Terminal | tail -n 1 | cut -d ' ' -f1) This forces the focus to the last openned windows with the name terminal (I guess the grep Terminal could be removed)
For me, Xfce's focus stealing prevention only works when you also have Focus Follows Mouse turned on. Running Xfce 4.10.1
Settings/Window Manager/Focus Automatically give Focus to newly created windows (off) Also Settings/Window Manager Tweaks/Focus Activate Focus Stealing Prevention (on) Honor standard ICCCM focus hint (off) When a window raises itself, (do nothing)
Only top voted, non community-wiki answers of a minimum length are eligible