зеркало из https://github.com/mozilla/gecko-dev.git
b=521872 fix up expose event handling in sample unix print plugin r=gavin
--HG-- extra : rebase_source : b25466a231799cc0f87fdd930b13897a3f7e9b93
This commit is contained in:
Родитель
5124921205
Коммит
a3c6852b14
|
@ -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:
|
||||||
|
|
Загрузка…
Ссылка в новой задаче