]> Dogcows Code - chaz/openbox/blobdiff - obt/display.h
figure out what type the value should be for each known .desktop key, and watch for...
[chaz/openbox] / obt / display.h
index b4a13c7cb2b04199da4ecc40449a5963baa0e9c5..b5816a9a58e5770e0910297e09f752cb4afa8c5b 100644 (file)
@@ -54,10 +54,16 @@ extern gint     obt_display_extension_randr_basep;
 extern gboolean obt_display_extension_sync;
 extern gint     obt_display_extension_sync_basep;
 
-Display* obt_display_open(const char *display_name);
-void     obt_display_close(Display *d);
+extern Display* obt_display;
 
-void     obt_display_ignore_errors(Display *d, gboolean ignore);
+/*! Open the X display.  You should call g_set_prgname() before calling this
+  function for X Input Methods to work correctly. */
+gboolean obt_display_open(const char *display_name);
+void     obt_display_close(void);
+
+void     obt_display_ignore_errors(gboolean ignore);
+
+#define  obt_root(screen) (RootWindow(obt_display, screen))
 
 G_END_DECLS
 
This page took 0.020108 seconds and 4 git commands to generate.