350 |
input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | |
input_mask = KeyPressMask | KeyReleaseMask | ButtonPressMask | ButtonReleaseMask | |
351 |
StructureNotifyMask | FocusChangeMask; |
StructureNotifyMask | FocusChangeMask; |
352 |
|
|
|
if (grab_keyboard) |
|
|
input_mask |= EnterWindowMask | LeaveWindowMask; |
|
353 |
if (sendmotion) |
if (sendmotion) |
354 |
input_mask |= PointerMotionMask; |
input_mask |= PointerMotionMask; |
355 |
if (ownbackstore) |
if (ownbackstore) |
516 |
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y); |
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y); |
517 |
break; |
break; |
518 |
|
|
519 |
case EnterNotify: |
case FocusIn: |
520 |
|
reset_modifier_keys(); |
521 |
if (grab_keyboard) |
if (grab_keyboard) |
522 |
XGrabKeyboard(display, wnd, True, |
XGrabKeyboard(display, wnd, True, |
523 |
GrabModeAsync, GrabModeAsync, CurrentTime); |
GrabModeAsync, GrabModeAsync, CurrentTime); |
524 |
break; |
break; |
525 |
|
|
526 |
case LeaveNotify: |
case FocusOut: |
527 |
if (grab_keyboard) |
if (grab_keyboard) |
528 |
XUngrabKeyboard(display, CurrentTime); |
XUngrabKeyboard(display, CurrentTime); |
529 |
break; |
break; |
530 |
|
|
|
case FocusIn: |
|
|
reset_modifier_keys(); |
|
|
break; |
|
|
|
|
531 |
case Expose: |
case Expose: |
532 |
XCopyArea(display, backstore, wnd, gc, |
XCopyArea(display, backstore, wnd, gc, |
533 |
xevent.xexpose.x, xevent.xexpose.y, |
xevent.xexpose.x, xevent.xexpose.y, |