wmctrl -a or -R does not give focus to window if mouse is outside window

Bug #1641608 reported by Oliver R.
14
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/click_to_focus -s false
But in the Xfce version shipped with Linux Mint 13 Xfce, wmctrl gave the focus to the window with WindowName anyway.

Revision history for this message
Oliver R. (oliverr) wrote :

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

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in wmctrl (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.