Add event mask as parameter to ecore_x_client_message32_send().
authorKim Woelders <kim@woelders.dk>
Wed, 29 Dec 2004 12:36:25 +0000 (12:36 +0000)
committerKim Woelders <kim@woelders.dk>
Wed, 29 Dec 2004 12:36:25 +0000 (12:36 +0000)
SVN revision: 12626

legacy/ecore/src/lib/ecore_x/Ecore_X.h
legacy/ecore/src/lib/ecore_x/ecore_x.c
legacy/ecore/src/lib/ecore_x/ecore_x_icccm.c

index e8865b0..dead88c 100644 (file)
@@ -918,7 +918,7 @@ EAPI int              ecore_x_pixmap_depth_get(Ecore_X_Pixmap pmap);
 EAPI Ecore_X_GC       ecore_x_gc_new(Ecore_X_Drawable draw);
 EAPI void             ecore_x_gc_del(Ecore_X_GC gc);
 
-EAPI int              ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type, long d0, long d1, long d2, long d3, long d4);
+EAPI int              ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type, Ecore_X_Event_Mask mask, long d0, long d1, long d2, long d3, long d4);
 EAPI int              ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type, const void *data, int len);
 
    
index 5185d3a..47fdfbb 100644 (file)
@@ -1261,6 +1261,7 @@ ecore_x_window_button_ungrab(Ecore_X_Window win, int button,
  */
 int
 ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type,
+                             Ecore_X_Event_Mask mask,
                              long d0, long d1, long d2, long d3, long d4)
 {
     XEvent xev;
@@ -1275,7 +1276,7 @@ ecore_x_client_message32_send(Ecore_X_Window win, Ecore_X_Atom type,
     xev.xclient.data.l[3] = d3;
     xev.xclient.data.l[4] = d4;
 
-    return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
+    return XSendEvent(_ecore_x_disp, win, False, mask, &xev);
 }
 
 /**
index f0eac22..1781eb2 100644 (file)
@@ -84,6 +84,7 @@ void
 ecore_x_icccm_delete_window_send(Ecore_X_Window win, Ecore_X_Time t)
 {
    ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
+                                ECORE_X_EVENT_MASK_NONE,
                                 ECORE_X_ATOM_WM_DELETE_WINDOW,
                                 t, 0, 0, 0);
 }
@@ -92,6 +93,7 @@ void
 ecore_x_icccm_take_focus_send(Ecore_X_Window win, Ecore_X_Time t)
 {
    ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
+                                ECORE_X_EVENT_MASK_NONE,
                                 ECORE_X_ATOM_WM_TAKE_FOCUS,
                                 t, 0, 0, 0);
 }
@@ -100,6 +102,7 @@ void
 ecore_x_icccm_save_yourself_send(Ecore_X_Window win, Ecore_X_Time t)
 {
    ecore_x_client_message32_send(win, ECORE_X_ATOM_WM_PROTOCOLS,
+                                ECORE_X_EVENT_MASK_NONE,
                                 ECORE_X_ATOM_WM_SAVE_YOURSELF,
                                 t, 0, 0, 0);
 }