From 15b03f6ea4adc1302566f5dd0391339b721f5581 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 14 May 2017 14:34:10 +0200 Subject: Fix missing redraw on exposure event. --- plugingui/nativewindow_x11.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'plugingui') 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; -- cgit v1.2.3