Enlightenment CVS committal

Author  : tsauerbeck
Project : e17
Module  : libs/ecore

Dir     : e17/libs/ecore/src/lib/ecore_x


Modified Files:
        Ecore_X.h ecore_x_window_prop.c 


Log Message:
implemented ecore_x_window_prop_borderless_get()
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -3 -r1.55 -r1.56
--- Ecore_X.h   28 Aug 2004 09:58:39 -0000      1.55
+++ Ecore_X.h   2 Sep 2004 18:45:31 -0000       1.56
@@ -820,6 +820,7 @@
 void             ecore_x_window_prop_step_size_set(Ecore_X_Window win, int x, int y);
 void             ecore_x_window_prop_xy_set(Ecore_X_Window win, int x, int y);
 void             ecore_x_window_prop_borderless_set(Ecore_X_Window win, int 
borderless);
+int              ecore_x_window_prop_borderless_get(Ecore_X_Window win);
 int              ecore_x_window_prop_layer_set(Ecore_X_Window win, int layer);
 void             ecore_x_window_prop_withdrawn_set(Ecore_X_Window win, int withdrawn);
 void             ecore_x_window_prop_desktop_request(Ecore_X_Window win, long 
desktop);
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_window_prop.c,v
retrieving revision 1.47
retrieving revision 1.48
diff -u -3 -r1.47 -r1.48
--- ecore_x_window_prop.c       2 Sep 2004 18:22:19 -0000       1.47
+++ ecore_x_window_prop.c       2 Sep 2004 18:45:31 -0000       1.48
@@ -1,3 +1,7 @@
+/*
+ * vim:ts=8:sw=3:sts=3:noexpandtab
+ */
+
 #include "Ecore.h"
 #include "ecore_x_private.h"
 #include "Ecore_X.h"
@@ -785,6 +789,28 @@
 }
 
 /**
+ * To be documented.
+ *
+ * FIXME: To be fixed.
+ */
+int
+ecore_x_window_prop_borderless_get(Ecore_X_Window win)
+{
+   unsigned char *data;
+   int num;
+
+   ecore_x_window_prop_property_get(win,
+                                    _ecore_x_atom_motif_wm_hints,
+                                    _ecore_x_atom_motif_wm_hints,
+                                    32, &data, &num);
+
+   /* check for valid data. only read the borderless flag if the
+    * decorations data has been set.
+    */
+   return (data && num > 2 && data[0] & 2) ? !data[2] : 0;
+}
+
+/**
  * Puts @a win in the desired layer. This currently works with
  * windowmanagers that are Gnome-compliant or support NetWM.
  * 




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
enlightenment-cvs mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to