351 |
height = HeightOfScreen(screen); |
height = HeightOfScreen(screen); |
352 |
} |
} |
353 |
|
|
354 |
|
/* make sure width is a multiple of 4 */ |
355 |
|
width = (width + 3) & ~3; |
356 |
|
|
357 |
xkeymap_init(); |
xkeymap_init(); |
358 |
return True; |
return True; |
359 |
} |
} |
571 |
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y); |
MOUSE_FLAG_MOVE, xevent.xmotion.x, xevent.xmotion.y); |
572 |
break; |
break; |
573 |
|
|
|
case FocusIn: |
|
|
/* fall through */ |
|
574 |
case EnterNotify: |
case EnterNotify: |
575 |
if (grab_keyboard) |
if (grab_keyboard) |
576 |
XGrabKeyboard(display, wnd, True, |
XGrabKeyboard(display, wnd, True, |
577 |
GrabModeAsync, GrabModeAsync, CurrentTime); |
GrabModeAsync, GrabModeAsync, CurrentTime); |
578 |
break; |
break; |
579 |
|
|
|
case FocusOut: |
|
|
xwin_reset_keys(); |
|
|
/* fall through */ |
|
580 |
case LeaveNotify: |
case LeaveNotify: |
581 |
if (grab_keyboard) |
if (grab_keyboard) |
582 |
XUngrabKeyboard(display, CurrentTime); |
XUngrabKeyboard(display, CurrentTime); |
583 |
break; |
break; |
584 |
|
|
585 |
|
case FocusOut: |
586 |
|
xwin_reset_keys(); |
587 |
|
break; |
588 |
|
|
589 |
case Expose: |
case Expose: |
590 |
XCopyArea(display, backstore, wnd, gc, |
XCopyArea(display, backstore, wnd, gc, |
591 |
xevent.xexpose.x, xevent.xexpose.y, |
xevent.xexpose.x, xevent.xexpose.y, |