568 |
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y); |
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y); |
569 |
break; |
break; |
570 |
|
|
|
case FocusIn: |
|
|
/* fall through */ |
|
571 |
case EnterNotify: |
case EnterNotify: |
572 |
if (grab_keyboard) |
if (grab_keyboard) |
573 |
XGrabKeyboard(display, wnd, True, |
XGrabKeyboard(display, wnd, True, |
574 |
GrabModeAsync, GrabModeAsync, CurrentTime); |
GrabModeAsync, GrabModeAsync, CurrentTime); |
575 |
break; |
break; |
576 |
|
|
|
case FocusOut: |
|
|
xwin_reset_keys(); |
|
|
/* fall through */ |
|
577 |
case LeaveNotify: |
case LeaveNotify: |
578 |
if (grab_keyboard) |
if (grab_keyboard) |
579 |
XUngrabKeyboard(display, CurrentTime); |
XUngrabKeyboard(display, CurrentTime); |
580 |
break; |
break; |
581 |
|
|
582 |
|
case FocusOut: |
583 |
|
xwin_reset_keys(); |
584 |
|
break; |
585 |
|
|
586 |
case Expose: |
case Expose: |
587 |
XCopyArea(display, backstore, wnd, gc, |
XCopyArea(display, backstore, wnd, gc, |
588 |
xevent.xexpose.x, xevent.xexpose.y, |
xevent.xexpose.x, xevent.xexpose.y, |