1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 18:32:34 +01:00

Compress expose events

This commit is contained in:
dan
2000-09-20 01:14:03 +00:00
parent c1a77f233f
commit a3cd52ba05

View File

@@ -661,8 +661,8 @@ _doneV:
if (tPtr->flags.monoFont && tb->graphic) if (tPtr->flags.monoFont && tb->graphic)
tb = getFirstNonGraphicBlockFor(tb, dir); tb = getFirstNonGraphicBlockFor(tb, dir);
if (tb) { if (tb) {
if ((dir? tb->sections[s].x >= x : tb->sections[s].x < x)) if ((dir? tb->sections[s].x >= x : tb->sections[s].x < x))
goto _doneH; goto _doneH;
#if 0 #if 0
if(tb->blank) { if(tb->blank) {
@@ -1345,12 +1345,12 @@ insertTextInteractively(Text *tPtr, char *text, int len)
} }
#if 0 #if 0
if(*text == 'c') { if(*text == 'c') {
WMColor *color = WMCreateNamedColor(W_VIEW_SCREEN(tPtr->view), WMColor *color = WMCreateNamedColor(W_VIEW_SCREEN(tPtr->view),
"Blue", True); "Blue", True);
WMSetTextSelectionColor(tPtr, color); WMSetTextSelectionColor(tPtr, color);
return; return;
} }
#endif #endif
if (len < 1 || !text) if (len < 1 || !text)
@@ -1840,6 +1840,8 @@ handleEvents(XEvent *event, void *data)
switch(event->type) { switch(event->type) {
case Expose: case Expose:
if (event->xexpose.count!=0)
break;
if(tPtr->hS) { if(tPtr->hS) {
if (!(W_VIEW(tPtr->hS))->flags.realized) if (!(W_VIEW(tPtr->hS))->flags.realized)
@@ -1866,8 +1868,7 @@ handleEvents(XEvent *event, void *data)
if(!tPtr->db) if(!tPtr->db)
textDidResize(tPtr->view->delegate, tPtr->view); textDidResize(tPtr->view->delegate, tPtr->view);
if (!event->xexpose.count && tPtr->view->flags.realized) paintText(tPtr);
paintText(tPtr);
break; break;
case FocusIn: case FocusIn: