making some nice batch-query stuff for initializing the display statics
[dana/dcompmgr.git] / display.h
index f46ed46..8551708 100644 (file)
--- a/display.h
+++ b/display.h
@@ -3,13 +3,50 @@
 
 #include <xcb/xcb.h>
 
+#include <glib.h>
+
+typedef struct d_display_ext {
+    gboolean          present;
+    int               error;
+    int               event;
+    int               opcode;
+    int               major_version;
+    int               minor_version;
+} d_display_ext_t;
+
 typedef struct d_display {
     xcb_connection_t *conn;
     int               ref;
 
-    int fixes_error;
-    int damage_error;
-    int render_error;
+    d_display_ext_t xfixes;
+    d_display_ext_t render;
+    d_display_ext_t composite;
+    d_display_ext_t damage;
+
+    struct {
+        /* types */
+        xcb_atom_t atom;
+        xcb_atom_t cardinal;
+        xcb_atom_t utf8_string;
+        xcb_atom_t string;
+        xcb_atom_t pixmap;
+        /* properties */
+        xcb_atom_t net_wm_window_type;
+        xcb_atom_t net_wm_window_type_desktop;
+        xcb_atom_t net_wm_window_type_dock;
+        xcb_atom_t net_wm_window_type_normal;
+        xcb_atom_t net_wm_window_type_dialog;
+        xcb_atom_t net_wm_window_type_toolbar;
+        xcb_atom_t net_wm_window_type_menu;
+        xcb_atom_t net_wm_window_type_utility;
+        xcb_atom_t net_wm_window_type_splash;
+        xcb_atom_t net_wm_window_type_dropdown_menu;
+        xcb_atom_t net_wm_window_type_popup_menu;
+        xcb_atom_t net_wm_window_type_tooltip;
+        xcb_atom_t net_wm_window_type_notification;
+        xcb_atom_t net_wm_window_type_combo;
+        xcb_atom_t net_wm_window_type_dnd;
+    } a;
 } d_display_t;
 
 d_display_t* display_open(const char *name);