aboutsummaryrefslogtreecommitdiff
path: root/spectrogram.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-14 23:58:44 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-14 23:58:44 +0000
commita02ae8d65ea7f18b9052ee0c8580de9d110b3065 (patch)
treeabd4c21c54c7e942317029871ad1426187acb09a /spectrogram.c
parent43ee45790a18bad360384b27ba91eaa73dfa76d6 (diff)
add redisplay func
Diffstat (limited to 'spectrogram.c')
-rw-r--r--spectrogram.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/spectrogram.c b/spectrogram.c
index 4156210..2fa1b29 100644
--- a/spectrogram.c
+++ b/spectrogram.c
@@ -73,15 +73,9 @@ static XtActionsRec actionsList[] = {
static Boolean
worker(XtPointer data)
{
- XEvent event;
+ redisplay(XtDisplay(data), XtWindow(data));
- memset(&event, 0, sizeof(XEvent));
- event.type = Expose;
- event.xexpose.window = XtWindow(data);
- XSendEvent(XtDisplay(data), XtWindow(data), False, ExposureMask, &event);
- XFlush(XtDisplay(data));
usleep(200);
-
return False; /* don't remove the work procedure from the list */
}