get the grab window for the kbd

SVN revision: 5741
This commit is contained in:
Carsten Haitzler 2001-11-30 00:58:28 +00:00
parent 839ebae03e
commit bd3259ac4b
2 changed files with 11 additions and 3 deletions

View File

@ -776,7 +776,8 @@ extern "C"
int any_mod);
void ecore_keyboard_grab(Window win);
void ecore_keyboard_ungrab(void);
Window ecore_keyboard_grab_window_get(void);
/* ----------------- GRAPHICS CONTEXT AND DRAWING CALLS */

View File

@ -53,6 +53,8 @@ static Window_List *ignore_wins = NULL;
static Window grab_pointer_win = 0;
static Window keyboard_grab_win = 0;
static int dnd_copy = 0;
static int dnd_link = 0;
static int dnd_move = 1;
@ -3354,8 +3356,6 @@ ecore_window_get_title(Window win)
return NULL;
}
static Window keyboard_grab_win = 0;
void
ecore_keyboard_grab(Window win)
{
@ -3384,6 +3384,13 @@ ecore_keyboard_ungrab(void)
XUngrabKeyboard(disp, CurrentTime);
}
Window
ecore_keyboard_grab_window_get(void)
{
if (!disp) return 0;
return keyboard_grab_win;
}
Window
ecore_selection_set(char *string)
{