Exemplo n.º 1
0
Arquivo: magwin.c Projeto: gzorin/e17
static void
_MagwinGrabRelease(MagWindow * mw)
{
   GrabPointerRelease();
   GrabKeyboardRelease();
   mw->grabbing = 0;
}
Exemplo n.º 2
0
void
FocusNewDesk(void)
{
   FocusEnable(1);
   FocusToEWin(NULL, FOCUS_DESK_ENTER);

   /* Unfreeze keyboard */
   GrabKeyboardRelease();
}
Exemplo n.º 3
0
static void
_MenuEwinClose(EWin * ewin)
{
   Menu               *m = (Menu *) ewin->data;

   if (m == Mode_menus.active)
     {
	GrabKeyboardRelease();
	Mode_menus.active = NULL;
     }

   ewin->data = NULL;
}
Exemplo n.º 4
0
static void
FocusRaisePending(void)
{
   EWin               *ewin = focus_pending_raise;
   unsigned int        mask;

   /* The focusing cycle ends when no more modifiers are depressed */
   mask = 0;
   EQueryPointer(NULL, NULL, NULL, NULL, &mask);
   if ((mask & Mode.masks.mod_key_mask) != 0)
      return;

   if (EwinFindByPtr(ewin))	/* May be gone */
      EwinListFocusRaise(ewin);

   GrabKeyboardRelease();

   focus_pending_raise = NULL;
}