Add forgetful restart to sighandler

This commit is contained in:
Axel Wagner
2010-12-30 21:43:34 +01:00
committed by Michael Stapelberg
parent 6ec468ba1e
commit aa422c07c4
4 changed files with 14 additions and 9 deletions

View File

@ -321,8 +321,9 @@ char *store_restart_layout() {
* appends -a to argument list to disable autostart
*
*/
void i3_restart() {
char *restart_filename = store_restart_layout();
void i3_restart(bool forget_layout) {
char *restart_filename = forget_layout ? NULL : store_restart_layout();
restore_geometry();
ipc_shutdown();