1. fix focus loss after fullscreening

2. add call to get x fd


SVN revision: 8257
This commit is contained in:
Carsten Haitzler 2004-01-03 03:24:37 +00:00
parent 5ecc729b86
commit f94ea32351
3 changed files with 16 additions and 0 deletions

View File

@ -255,6 +255,8 @@ _ecore_evas_event_window_focus_out(void *data, int type, void *event)
e = event;
ee = _ecore_evas_x_match(e->win);
if (!ee) return 1; /* pass on event */
if (ee->prop.fullscreen)
ecore_x_window_focus(ee->engine.x.win);
ee->prop.focused = 0;
if (ee->func.fn_focus_out) ee->func.fn_focus_out(ee);
return 0; /* dont pass it on */

View File

@ -563,6 +563,7 @@ typedef enum _Ecore_X_Selection_Target {
int ecore_x_init(const char *name);
int ecore_x_shutdown(void);
Ecore_X_Display *ecore_x_display_get(void);
int ecore_x_fd_get(void);
void ecore_x_double_click_time_set(double t);
double ecore_x_double_click_time_get(void);
void ecore_x_flush(void);

View File

@ -404,6 +404,19 @@ ecore_x_display_get(void)
return (Ecore_X_Display *)_ecore_x_disp;
}
/**
* Get the X display fd.
* @return The X Display fd
*
* This returns the X Display file descriptor.
* <hr><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
*/
int
ecore_x_fd_get(void)
{
return ConnectionNumber(_ecore_x_disp);
}
/**
* Set the timeout for double/triple click to be flagged.
* @param t The time in seconds