Skip to content

XFCE 4.14 gets quite slow after a fews days running straight

So far, I always used XFCE 4.12 continuously for months (my computer is always on), and I never had any lag problems.

But with XFCE 4.14, after a few days running straight, the use interface starts becoming quite slow (Alt+Tab response, for example). The only fix is to restart the window manager process xfwm4 --replace &.

$ xfwm4 --version
	This is xfwm4 version 4.14.1 (revision 44809c49) for Xfce 4.14
	Released under the terms of the GNU General Public License.
	Compiled against GTK+-3.24.17, using GTK+-3.24.20.

	Build configuration and supported features:
	- Startup notification support:                 Yes
	- XSync support:                                Yes
	- Render support:                               Yes
	- Xrandr support:                               Yes
	- Xpresent support:                             Yes
	- Embedded compositor:                          Yes
	- Epoxy support:                                Yes
	- KDE systray proxy (deprecated):               No

$ cat /etc/os-release 
NAME="Ubuntu"
VERSION="20.04.1 LTS (Focal Fossa)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 20.04.1 LTS"
VERSION_ID="20.04"

I think I will be able to overcome this problem with the following daily anacrontab task:

# sudo apt-get install anacron && sudo vim /etc/anacrontab
# period in days    delay in minutes    job-identifier  command
1                   1                   restart-xfwm4   sudo -u evandro_coan xfwm4 --replace & sleep 3 && xfconf-query -c xfwm4 -p /general/titleless_maximize -s false && sleep 2 && xfconf-query -c xfwm4 -p /general/titleless_maximize -s true
  1. https://bigint.wordpress.com/2016/08/10/xfce-panel-hiding-maximized-window-title/
  2. https://forum.xfce.org/viewtopic.php?id=10836 - change xfwm4-settings through command line
  3. https://stackoverflow.com/questions/14612371/how-do-i-run-multiple-background-commands-in-bash-in-a-single-line

The last part of the command is to fix all my windows being put below the xfce4-panel.

Edited by evandrocoan