After an automatic Ubuntu upgrade, we found that all windows were maximized, and the "minimize and close" button disappeared. There is an article on the Internet to solve this problem: change their location and order. For metacity window manager, you can edit apps/metacity/general/button_layout in Gconf. Its value must be a string, such as "menu: minimize, maximize, close ";
After an automatic Ubuntu upgrade, we found that all windows were maximized, and the "minimize and close" button disappeared.
There is an article on the Internet to solve this problem:
Change their location and order
For the metacity window manager, you can edit apps/metacity/general/button_layout in Gconf. The value must be a string, such as "menu: minimize, maximize, close". The upper left corner and the upper right corner of the window are separated by a comma. Duplicate buttons are not allowed. Unknown button names are ignored. Therefore, you can add new buttons in metacity of future versions without damaging old versions.
So I tried to call up the metacity window manager, but it was not successful. $ Metacity
Window Manager warning: the screen 0 on ": 0.0" already has a window manager. Please try replacing the current window manager with the -- replace option.
Is the current window manager not metacity? Then, follow the prompts to run the replace option to replace the current window manager: $ metacity -- replace
After that, the screen refreshed and all the buttons came out, which is too strange.