]> Pileus Git - wmpus/blobdiff - sys.h
Try to improve focus speed
[wmpus] / sys.h
diff --git a/sys.h b/sys.h
index d2001225a1baee26218ec6ccb4a33b8948ae1c8c..0a243bfff072b146e56878d543d06a2fd9531b6e 100644 (file)
--- a/sys.h
+++ b/sys.h
  * and control windows. */
 
 
+/* Window states */
+typedef enum {
+       st_show,  // show as regular window
+       st_full,  // fullscreen/maximized
+       st_shade, // show titlebar only
+       st_icon,  // iconified/minimized
+       st_hide,  // completely hidden
+} state_t;
+
 /* Basic window type */
 typedef struct win_sys win_sys_t;
 typedef struct win_wm  win_wm_t;
 typedef struct {
        int x, y, z;
        int w, h;
+       state_t    state;
        win_sys_t *sys;
        win_wm_t  *wm;
 } win_t;
@@ -78,15 +88,6 @@ typedef struct {
 } ptr_t;
 #define PTR(...) ((ptr_t){__VA_ARGS__})
 
-/* Window states */
-typedef enum {
-       st_show,  // show as regular window
-       st_full,  // fullscreen/maximized
-       st_shade, // show titlebar only
-       st_icon,  // iconified/minimized
-       st_hide,  // completely hidden
-} state_t;
-
 
 /* Move the window to the specified location and set it's
  * geometry. The position and size include borders and
@@ -119,3 +120,9 @@ win_t *sys_init(void);
 
 /* Starts the main loop */
 void sys_run(win_t *root);
+
+/* Exit main loop */
+void sys_exit(void);
+
+/* Free all static data, for memory debugging */
+void sys_free(win_t *root);