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:


ecore_evas activate call.. uses netwm one... eek. need to add xcb.

===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/Ecore_X.h,v
retrieving revision 1.198
retrieving revision 1.199
diff -u -3 -r1.198 -r1.199
--- Ecore_X.h   30 May 2008 22:30:57 -0000      1.198
+++ Ecore_X.h   30 Jun 2008 08:39:36 -0000      1.199
@@ -1405,6 +1405,7 @@
 EAPI void                ecore_x_netwm_client_list_set(Ecore_X_Window root, 
Ecore_X_Window *p_clients, unsigned int n_clients);
 EAPI void                ecore_x_netwm_client_list_stacking_set(Ecore_X_Window 
root, Ecore_X_Window *p_clients, unsigned int n_clients);
 EAPI void                ecore_x_netwm_client_active_set(Ecore_X_Window root, 
Ecore_X_Window win);
+EAPI void                ecore_x_netwm_client_active_request(Ecore_X_Window 
root, Ecore_X_Window win, int type, Ecore_X_Window current_win);
 EAPI void                ecore_x_netwm_name_set(Ecore_X_Window win, const char 
*name);
 EAPI void                ecore_x_netwm_name_get_prefetch(Ecore_X_Window 
window);
 EAPI void                ecore_x_netwm_name_get_fetch(void);
===================================================================
RCS file: /cvs/e/e17/libs/ecore/src/lib/ecore_x/ecore_x_netwm.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -3 -r1.62 -r1.63
--- ecore_x_netwm.c     13 Mar 2008 06:36:50 -0000      1.62
+++ ecore_x_netwm.c     30 Jun 2008 08:39:36 -0000      1.63
@@ -449,6 +449,28 @@
 }
 
 EAPI void
+ecore_x_netwm_client_active_request(Ecore_X_Window root, Ecore_X_Window win, 
int type, Ecore_X_Window current_win)
+{
+   XEvent xev;
+
+   if (!root) root = DefaultRootWindow(_ecore_x_disp);
+   
+   xev.xclient.type = ClientMessage;
+   xev.xclient.display = _ecore_x_disp;
+   xev.xclient.window = win;
+   xev.xclient.message_type = ECORE_X_ATOM_NET_ACTIVE_WINDOW;
+   xev.xclient.format = 32;
+   xev.xclient.data.l[0] = type;
+   xev.xclient.data.l[1] = CurrentTime;
+   xev.xclient.data.l[2] = current_win;
+   xev.xclient.data.l[3] = 0;
+   xev.xclient.data.l[4] = 0;
+   xev.xclient.data.l[5] = 0;
+
+   XSendEvent(_ecore_x_disp, root, False, NoEventMask, &xev);
+}
+
+EAPI void
 ecore_x_netwm_name_set(Ecore_X_Window win, const char *name)
 {
    _ecore_x_window_prop_string_utf8_set(win, ECORE_X_ATOM_NET_WM_NAME, name);
@@ -1250,7 +1272,7 @@
    xev.xclient.data.l[3] = XSyncValueHigh32(value);
    xev.xclient.data.l[4] = 0;
 
-   XSendEvent(_ecore_x_disp, win, False, 0, &xev);
+   XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
 }
 
 EAPI void



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to