Linux Gnome Desktop Windows Decoration Disappeared

Sometime when I logged on to my Gnome Linux desktop I noticed that windows decoration disappeared i.e. minimize / maximaize / close buttons and other decoration gone. How do I fix this annoying problem under Fedora / Mint / Debian / Ubuntu Linux gnome desktop?

metacity is a minimal X window manager and default for most gnome installation. It is designed to integrate well with the GNOME desktop.

Tutorial details
Difficulty level Easy
Root privileges No
Requirements Gnome
Est. reading time N/A
metacity lacks some features that may be expected by traditional UNIX or other technical users; these users may want to investigate other available window managers for use with GNOME or standalone.

This error (or behavior) means GTK2 window manager is not working properly or crashed. If you are not using compiz or emerald windows decorator, type the following command to fix this issue:
$ metacity --replace
This will replace a window manager which is running or crashed is replaced by metacity for current session.

If you are using compiz

Type the following command:
$ compiz --replace
Also make sure, the Windows Decoration plugin which provides a window border for your windows is turned on. The decoration plugin is essentially. Type the following command:
$ ccsm
You need to click on the “Effects” > Enable “Windows Decorations”. This will fix the windows unusable problem such as window borders, resizing windows and moving windows which are initially disabled by default. Click on the “Effects” > Enable “Windows Decorations”:

Fig.01: Enable Compiz decoration effect to move windows

Finally, type the following command to set it as default Gnome window manager:
$ gconftool-2 --type string --set /desktop/gnome/session/required_components/windowmanager compiz

If you are using emerald windows decorator

Type the following command:
$ emerald --replace

If you are using both compiz+emerald windows decorator

Type the following command:
$ compiz --replace 2>/dev/null &
$ emerald --replace 2>/dev/null &

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 1 comment so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersdf duf ncdu pydf
File Managementcat cp mkdir tree
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Modern utilitiesbat exa
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg glances gtop jobs killall kill pidof pstree pwdx time vtop
Searchingag grep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
1 comment… add one
  • Graham F Sep 2, 2012 @ 11:31

    Hi I have a similar problem with Ubuntu 10.04 and Gnome, I find that the command

    gtk-window-decorator --replace &  

    does the trick on my system

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum