I pride myself on keeping my system up and running a long time between restarts. I have a long running RHEL7 workstation. Occasionally (usually if it has been running continuously for a month) the window manager crashes. By crashes I mean the windows are 'visible' but have no title bars, menus etc. The mouse pointer can be moved but the focus cannot be changed.
I can however switch to a terminal session using Alt-F1 etc.
On previous systems I was able to restart the window manager using something like:
metacity --replace
or
compiz --replace
This would restore my session without me even having to logout. However, I am not clear which window manager is even running. How can I find out?
Note that I know you can restart the display manager using:
systemctl restart display-manager
but that starts a new session and requires you to log in again. I would like to be able to restart just the crashed wm process without doing this.
I think under the hood this is still gnome3 using wayland, mutter or some such. Is there actually a separate window manager I can restart at all any more? and if not why not?