Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCody Russell <cody@jhu.edu>2013-08-20 22:47:04 +0400
committerCody Russell <cody@jhu.edu>2013-08-20 22:47:04 +0400
commit82b050a922807cbe61479be4240f6be80d6be58f (patch)
tree8ecff576cb8cb52a4f47273c04a386d3dfb6b035 /main/src/core/Mono.Texteditor
parentd5312ca80caaf4653bdb62193c75e91a6d0e9871 (diff)
[TextEditor] Set GdkWindow.Background to prevent black flashes on focus.
Fixes https://bugzilla.xamarin.com/show_bug.cgi?id=9963
Diffstat (limited to 'main/src/core/Mono.Texteditor')
-rw-r--r--main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs
index 42cb66d82d..413747eebd 100644
--- a/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs
+++ b/main/src/core/Mono.Texteditor/Mono.TextEditor/Gui/TextArea.cs
@@ -662,6 +662,7 @@ namespace Mono.TextEditor
WindowAttributesType mask = WindowAttributesType.X | WindowAttributesType.Y | WindowAttributesType.Colormap | WindowAttributesType.Visual;
GdkWindow = new Gdk.Window (ParentWindow, attributes, mask);
GdkWindow.UserData = Raw;
+ GdkWindow.Background = Style.Background (StateType.Normal);
Style = Style.Attach (GdkWindow);
imContext.ClientWindow = this.GdkWindow;