From 1b965a9cfbf43c70d133ff268e70f393d8679637 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Mon, 21 Feb 2005 01:24:22 +0000 Subject: [PATCH] call gdk_flush() in Update() (see discussion of patch 1047642) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32275 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/gtk/window.cpp | 6 ++++++ src/gtk1/window.cpp | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/gtk/window.cpp b/src/gtk/window.cpp index 558f67a699..f828018064 100644 --- a/src/gtk/window.cpp +++ b/src/gtk/window.cpp @@ -3941,6 +3941,12 @@ void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect ) void wxWindowGTK::Update() { GtkUpdate(); + + // when we call Update() we really want to update the window immediately on + // screen, even if itmeans flushing the entire queue and hence slowing down + // everything -- but it should still be done, it's just that Update() should + // be called very rarely + gdk_flush(); } void wxWindowGTK::GtkUpdate() diff --git a/src/gtk1/window.cpp b/src/gtk1/window.cpp index 558f67a699..f828018064 100644 --- a/src/gtk1/window.cpp +++ b/src/gtk1/window.cpp @@ -3941,6 +3941,12 @@ void wxWindowGTK::Refresh( bool eraseBackground, const wxRect *rect ) void wxWindowGTK::Update() { GtkUpdate(); + + // when we call Update() we really want to update the window immediately on + // screen, even if itmeans flushing the entire queue and hence slowing down + // everything -- but it should still be done, it's just that Update() should + // be called very rarely + gdk_flush(); } void wxWindowGTK::GtkUpdate() -- 2.45.2