]> git.sur5r.net Git - i3/i3/blobdiff - include/restore_layout.h
Ensure all *.[ch] files include config.h
[i3/i3] / include / restore_layout.h
index a039f92f72a454527662ff44b32e7e851c3a44db..98b257d90f83af099c9d5e18458735fa175bc8d1 100644 (file)
@@ -2,14 +2,15 @@
  * vim:ts=4:sw=4:expandtab
  *
  * i3 - an improved dynamic tiling window manager
- * © 2009-2013 Michael Stapelberg and contributors (see also: LICENSE)
+ * © 2009 Michael Stapelberg and contributors (see also: LICENSE)
  *
  * restore_layout.c: Everything for restored containers that is not pure state
  *                   parsing (which can be found in load_layout.c).
  *
  */
-#ifndef I3_RESTORE_LAYOUT_H
-#define I3_RESTORE_LAYOUT_H
+#pragma once
+
+#include <config.h>
 
 /**
  * Opens a separate connection to X11 for placeholder windows when restoring
@@ -29,4 +30,11 @@ void restore_connect(void);
  */
 void restore_open_placeholder_windows(Con *con);
 
-#endif
+/**
+ * Kill the placeholder window, if placeholder refers to a placeholder window.
+ * This function is called when manage.c puts a window into an existing
+ * container. In order not to leak resources, we need to destroy the window and
+ * all associated X11 objects (pixmap/gc).
+ *
+ */
+bool restore_kill_placeholder(xcb_window_t placeholder);