Restore geometry of all windows before exiting/restarting (Thanks Sasha)

This fixes ticket 
This commit is contained in:
Michael Stapelberg
2010-03-02 15:25:08 +01:00
parent d08ec00329
commit b53c5861a2
4 changed files with 37 additions and 0 deletions

@ -32,6 +32,7 @@
#include "resize.h"
#include "log.h"
#include "sighandler.h"
#include "manage.h"
bool focus_window_in_container(xcb_connection_t *conn, Container *container, direction_t direction) {
/* If this container is empty, were done */
@ -977,6 +978,7 @@ void parse_command(xcb_connection_t *conn, const char *command) {
/* Is it an <exit>? */
if (STARTS_WITH(command, "exit")) {
LOG("User issued exit-command, exiting without error.\n");
restore_geometry(global_conn);
exit(EXIT_SUCCESS);
}