wmctrl -a or -R does not give focus to window if mouse is outside window
Bug #1641608 reported by
Oliver R.
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
wmctrl (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
wmctrl 1.07 running on Linux Mint 18 Xfce (Ubuntu 16.04) with Xfce 4.12.1-2
wmctrl -a WindowName
raises the window, but does not give focus if the mouse pointer is outside the window area. Same with -R.
Xfce is configured to give focus to the window under the mouse pointer:
xfconf-query -c xfwm4 -p /general/
But in the Xfce version shipped with Linux Mint 13 Xfce, wmctrl gave the focus to the window with WindowName anyway.
To post a comment you must log in.
Workaround:
xfconf-query -c xfwm4 -p /general/ click_to_ focus -s true ; wmctrl -R WindowName ; xfconf-query -c xfwm4 -p /general/ click_to_ focus -s false