Enlightenment CVS committal

Author  : raster
Project : e17
Module  : libs/ecore

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


Modified Files:
        Ecore_X.h ecore_x_netwm.c 


Log Message:


netwm frame hint

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.93
retrieving revision 1.94
diff -u -3 -r1.93 -r1.94
--- Ecore_X.h   11 Jan 2005 13:31:13 -0000      1.93
+++ Ecore_X.h   13 Jan 2005 07:13:06 -0000      1.94
@@ -1098,7 +1098,8 @@
    EAPI int                 ecore_x_netwm_opacity_get(Ecore_X_Window win, 
unsigned int *opacity);
    EAPI void                ecore_x_netwm_window_state_set(Ecore_X_Window win, 
Ecore_X_Window_State state, int on);
    EAPI int                 ecore_x_netwm_window_state_isset(Ecore_X_Window 
win, Ecore_X_Window_State state);
-
+   EAPI void                ecore_x_netwm_frame_size_set(Ecore_X_Window win, 
int fl, int fr, int ft, int fb);
+   
    EAPI int                 ecore_x_xinerama_screen_count_get(void);
    EAPI int                 ecore_x_xinerama_screen_geometry_get(int screen, 
int *x, int *y, int *w, int *h);
    
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_netwm.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -3 -r1.7 -r1.8
--- ecore_x_netwm.c     30 Dec 2004 05:36:01 -0000      1.7
+++ ecore_x_netwm.c     13 Jan 2005 07:13:06 -0000      1.8
@@ -238,6 +238,8 @@
 
 Ecore_X_Atom        ECORE_X_ATOM_NET_WM_WINDOW_OPACITY = 0;
 
+Ecore_X_Atom        ECORE_X_ATOM_NET_FRAME_EXTENTS = 0;
+
 void
 ecore_x_netwm_init(void)
 {
@@ -307,6 +309,8 @@
    ECORE_X_ATOM_NET_WM_STATE_BELOW = _ATOM_GET("_NET_WM_STATE_BELOW");
 
    ECORE_X_ATOM_NET_WM_WINDOW_OPACITY = _ATOM_GET("_NET_WM_WINDOW_OPACITY");
+   
+   ECORE_X_ATOM_NET_FRAME_EXTENTS = _ATOM_GET("_NET_FRAME_EXTENTS");
 }
 
 /*
@@ -503,6 +507,18 @@
 }
 
 void
+ecore_x_netwm_frame_size_set(Ecore_X_Window win, int fl, int fr, int ft, int 
fb)
+{
+   int frames[4];
+   
+   frames[0] = fl;
+   frames[1] = fr;
+   frames[2] = ft;
+   frames[3] = fb;
+   ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_FRAME_EXTENTS, frames, 
4);
+}
+
+void
 ecore_x_netwm_desktop_set(Ecore_X_Window win, unsigned int desk)
 {
    ecore_x_window_prop_card32_set(win, ECORE_X_ATOM_NET_WM_DESKTOP, &desk, 1);




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to