summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-05-14 14:34:10 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-05-14 14:35:39 +0200
commit15b03f6ea4adc1302566f5dd0391339b721f5581 (patch)
treea52018ff33c3f795d1d3d050d841ed156c2560b4 /plugingui
parent8c3af076c93b430102db817b68cc7e43d764db0c (diff)
Fix missing redraw on exposure event.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/nativewindow_x11.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/plugingui/nativewindow_x11.cc b/plugingui/nativewindow_x11.cc
index ae8ad2c..bc9091d 100644
--- a/plugingui/nativewindow_x11.cc
+++ b/plugingui/nativewindow_x11.cc
@@ -316,6 +316,13 @@ void NativeWindowX11::translateXMessage(XEvent& xevent)
repaintEvent->width = xevent.xexpose.width;
repaintEvent->height = xevent.xexpose.height;
event_queue.push_back(repaintEvent);
+
+ if(image)
+ {
+ // Redraw the entire window.
+ Rect rect{0, 0, window.wpixbuf.width, window.wpixbuf.height};
+ redraw(rect);
+ }
}
break;