summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/gui/widgets/window.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/window.cpp b/src/gui/widgets/window.cpp
index e781ec548..f4921e7ca 100644
--- a/src/gui/widgets/window.cpp
+++ b/src/gui/widgets/window.cpp
@@ -688,9 +688,14 @@ void Window::widgetMoved(const Event& event A_UNUSED)
void Window::widgetHidden(const Event &event A_UNUSED)
{
- mTextChanged = true;
+ if (isBatchDrawRenders(openGLMode))
+ mVertexes->clear();
+
mTextChunk.deleteImage();
+ mTextChanged = true;
+ mRedraw = true;
+
if (gui)
gui->setCursorType(Cursor::CURSOR_POINTER);