Mercurial > MadButterfly
diff src/X_main.c @ 37:943acee7f346
update exposed area
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Wed, 06 Aug 2008 10:14:45 +0800 |
parents | 581a03196093 |
children | db2aa914e14b |
line wrap: on
line diff
--- a/src/X_main.c Wed Aug 06 02:20:28 2008 +0800 +++ b/src/X_main.c Wed Aug 06 10:14:45 2008 +0800 @@ -38,7 +38,7 @@ shape_t *shape = NULL; int in_stroke; - XSelectInput(display, win, PointerMotionMask); + XSelectInput(display, win, PointerMotionMask | ExposureMask); while((r = XNextEvent(display, &evt)) == 0) { switch(evt.type) { case MotionNotify: @@ -48,6 +48,11 @@ shape = find_shape_at_pos(rdman, x, y, &in_stroke); hint_shape(rdman, shape); break; + case Expose: + rdman_redraw_all(rdman); + /* rdman_redraw_area(rdman, evt.xexpose.x, evt.xexpose.y, + evt.xexpose.width, evt.xexpose.height); */ + break; } } }