b=521872 fix up expose event handling in sample unix print plugin r=gavin

--HG--
extra : rebase_source : b25466a231799cc0f87fdd930b13897a3f7e9b93
This commit is contained in:
Karl Tomlinson 2009-10-14 15:35:47 +13:00
Родитель 5124921205
Коммит a3c6852b14
2 изменённых файлов: 6 добавлений и 3 удалений

Просмотреть файл

@ -462,7 +462,9 @@ xt_event_handler(Widget xt_w, PluginInstance *This, XEvent *xevent, Boolean *b)
{ {
case Expose: case Expose:
/* get rid of all other exposure events */ /* get rid of all other exposure events */
while(XCheckTypedWindowEvent(This->display, This->window, Expose, xevent)); do {
} while (XCheckTypedWindowEvent(This->display, This->window,
Expose, xevent));
drawPixmap(This); drawPixmap(This);
break; break;
case ButtonRelease: case ButtonRelease:

Просмотреть файл

@ -112,7 +112,8 @@ xt_event_handler(Widget xt_w, PluginInstance *This, XEvent *xevent, Boolean *b)
{ {
case Expose: case Expose:
/* get rid of all other exposure events */ /* get rid of all other exposure events */
while(XCheckTypedWindowEvent(This->display, This->window, Expose, xevent)) do {} while (XCheckTypedWindowEvent(This->display, This->window,
Expose, xevent));
privatePrintScreenMessage(This); privatePrintScreenMessage(This);
break; break;
case ButtonRelease: case ButtonRelease: