Some hackish bits to enable cleaner e17 shutdown.
authorKim Woelders <kim@woelders.dk>
Wed, 5 Jan 2005 23:35:16 +0000 (23:35 +0000)
committerKim Woelders <kim@woelders.dk>
Wed, 5 Jan 2005 23:35:16 +0000 (23:35 +0000)
SVN revision: 12792

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

index 12937c9..e0eb238 100644 (file)
@@ -1179,7 +1179,10 @@ EAPI int              ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_A
    EAPI void
      ecore_x_window_button_ungrab(Ecore_X_Window win, int button,
                                  int mod, int any_mod);
-       
+
+   EAPI void ecore_x_focus_reset(void);
+   EAPI void ecore_x_events_allow_all(void);
+
 #ifdef __cplusplus
 }
 #endif
index 6b0a310..957f200 100644 (file)
@@ -1368,6 +1368,18 @@ ecore_x_client_message8_send(Ecore_X_Window win, Ecore_X_Atom type,
     return XSendEvent(_ecore_x_disp, win, False, NoEventMask, &xev);
 }
 
+void
+ecore_x_focus_reset(void)
+{
+   XSetInputFocus(_ecore_x_disp, PointerRoot, RevertToPointerRoot, CurrentTime);
+}
+
+void
+ecore_x_events_allow_all(void)
+{
+   XAllowEvents(_ecore_x_disp, AsyncBoth, CurrentTime);
+}
+
 
 /*****************************************************************************/
 /*****************************************************************************/