Enlightenment CVS committal

Author  : sebastid
Project : e17
Module  : libs/ecore

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


Modified Files:
        Ecore_X.h ecore_x.c ecore_x_events.c 


Log Message:
Event for _NET_REQUEST_FRAME_EXTENTS

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -3 -r1.127 -r1.128
--- Ecore_X.h   3 Jun 2005 11:58:09 -0000       1.127
+++ Ecore_X.h   3 Jun 2005 19:00:01 -0000       1.128
@@ -241,6 +241,7 @@
 typedef struct _Ecore_X_Event_Xdnd_Finished            
Ecore_X_Event_Xdnd_Finished;
 typedef struct _Ecore_X_Event_Window_Move_Resize_Request 
Ecore_X_Event_Window_Move_Resize_Request;
 typedef struct _Ecore_X_Event_Window_State_Request     
Ecore_X_Event_Window_State_Request;
+typedef struct _Ecore_X_Event_Frame_Extents_Request    
Ecore_X_Event_Frame_Extents_Request;
 typedef struct _Ecore_X_Event_Desktop_Change           
Ecore_X_Event_Desktop_Change;
 typedef struct _Ecore_X_Event_Client_Message           
Ecore_X_Event_Client_Message;
 typedef struct _Ecore_X_Event_Window_Shape             
Ecore_X_Event_Window_Shape;
@@ -617,6 +618,11 @@
    int                         source;
 };
 
+struct _Ecore_X_Event_Frame_Extents_Request
+{
+   Ecore_X_Window              win;
+};
+
 struct _Ecore_X_Event_Desktop_Change
 {
    Ecore_X_Window              win;
@@ -739,6 +745,7 @@
 extern EAPI int ECORE_X_EVENT_SELECTION_NOTIFY;
 extern EAPI int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST;
 extern EAPI int ECORE_X_EVENT_WINDOW_STATE_REQUEST;
+extern EAPI int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST;
 extern EAPI int ECORE_X_EVENT_DESKTOP_CHANGE;
 extern EAPI int ECORE_X_EVENT_CLIENT_MESSAGE;
 extern EAPI int ECORE_X_EVENT_WINDOW_SHAPE;
===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x.c,v
retrieving revision 1.84
retrieving revision 1.85
diff -u -3 -r1.84 -r1.85
--- ecore_x.c   28 May 2005 12:49:40 -0000      1.84
+++ ecore_x.c   3 Jun 2005 19:00:01 -0000       1.85
@@ -115,6 +115,7 @@
 int ECORE_X_EVENT_SELECTION_NOTIFY = 0;
 int ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST = 0;
 int ECORE_X_EVENT_WINDOW_STATE_REQUEST = 0;
+int ECORE_X_EVENT_FRAME_EXTENTS_REQUEST = 0;
 int ECORE_X_EVENT_DESKTOP_CHANGE = 0;
 int ECORE_X_EVENT_CLIENT_MESSAGE = 0;
 int ECORE_X_EVENT_WINDOW_SHAPE = 0;
@@ -259,6 +260,7 @@
        ECORE_X_EVENT_SELECTION_NOTIFY         = ecore_event_type_new();
        ECORE_X_EVENT_WINDOW_MOVE_RESIZE_REQUEST = ecore_event_type_new();
        ECORE_X_EVENT_WINDOW_STATE_REQUEST     = ecore_event_type_new();
+       ECORE_X_EVENT_FRAME_EXTENTS_REQUEST    = ecore_event_type_new();
        ECORE_X_EVENT_DESKTOP_CHANGE           = ecore_event_type_new();
        ECORE_X_EVENT_CLIENT_MESSAGE           = ecore_event_type_new();
        ECORE_X_EVENT_WINDOW_SHAPE             = ecore_event_type_new();
===================================================================
RCS file: 
/cvsroot/enlightenment/e17/libs/ecore/src/lib/ecore_x/ecore_x_events.c,v
retrieving revision 1.60
retrieving revision 1.61
diff -u -3 -r1.60 -r1.61
--- ecore_x_events.c    28 May 2005 12:49:40 -0000      1.60
+++ ecore_x_events.c    3 Jun 2005 19:00:01 -0000       1.61
@@ -1456,6 +1456,16 @@
 
        ecore_event_add(ECORE_X_EVENT_DESKTOP_CHANGE, e, NULL, NULL);
      }
+   else if ((xevent->xclient.message_type == 
ECORE_X_ATOM_NET_REQUEST_FRAME_EXTENTS))
+     {
+       Ecore_X_Event_Frame_Extents_Request *e;
+
+       e = calloc(1, sizeof(Ecore_X_Event_Frame_Extents_Request));
+       if (!e) return;
+       e->win = xevent->xclient.window;
+
+       ecore_event_add(ECORE_X_EVENT_FRAME_EXTENTS_REQUEST, e, NULL, NULL);
+     }
    else
      {
        Ecore_X_Event_Client_Message *e;




-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to