! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Window not focusable after workspace switch


Description Thierry EXCOFFIER 2018-04-12 17:25:18 CEST
Reproducible on Ubuntu 17.10 standard install and with the xfwm4 compiled from GIT (2018-04-12).

Needed configuration :
  * The focus follows the pointer.
  * A keyboard shortcut allows to switch workspaces.

Raising the bug :
  * Open a window A on workspace 0
  * Open a window B on workspace 1 : NOT AT THE SAME PLACE
  * Set the pointer inside the A window (NOT ON THE WINDOW DECORATION)
  * Use the keyboard to goto workspace 1 (the pointer MUST NOT BE IN WINDOW B)
  * The window B does not get the keyboard focus as it should
  * Move the pointer in the window B : it does not get the keyboard focus.
  * Click in the window B : it does not get the keyboard focus.

Moving the pointer into another window and coming back allows
to get back the keyboard focus.

By the way, lost characters do not go into the window A.

I hope this will help to find the problem.
Comment 1 Olivier Fourdan editbugs 2018-04-12 19:04:09 CEST
Works fine here...
Comment 2 Thierry EXCOFFIER 2018-04-12 21:14:46 CEST
I reproduced the bug on Linux 32 bits.

Erase session settings : rm -r .config/xfce4


Connect and choose the default configuration.

Execute the following script :

xfconf-query -c xfwm4 --create -p /general/click_to_focus --type bool -s false
xfconf-query -c xfwm4 --create -p /general/focus_delay --type int -s 0
xfconf-query -c xsettings --create -p /Net/ThemeName --type string -s Xfce-stellar
xfce4-panel -r

After this, the previous bug is active.

Strangely, using the graphical application to set these parameters
does not raise the bug.
Comment 3 Thierry EXCOFFIER 2018-04-13 07:32:54 CEST
I make a diff between manual and script configuration.
The focus_delay is not set to 0 by the GUI but 5.

The problem is fixed by running : xfconf-query -c xfwm4 --create -p /general/focus_delay --type int -s 5

And strangely, it does not come back with : xfconf-query -c xfwm4 --create -p /general/focus_delay --type int -s 0

But after this, if /Net/ThemeName is modified (even with the GUI) the focus problem come back.
Comment 4 Git Bot editbugs 2020-05-29 12:20:13 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfwm4/-/issues/285.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #14332

Reported by:
Reported on: 2018-04-12
Last modified on: 2020-05-29


Olivier Fourdan
CC List:
0 users




Additional information