diff options
author | Cody Russell <cody@jhu.edu> | 2013-08-20 22:47:04 +0400 |
---|---|---|
committer | Cody Russell <cody@jhu.edu> | 2013-08-20 22:47:04 +0400 |
commit | 82b050a922807cbe61479be4240f6be80d6be58f (patch) | |
tree | 8ecff576cb8cb52a4f47273c04a386d3dfb6b035 /main/src/core/Mono.Texteditor | |
parent | d5312ca80caaf4653bdb62193c75e91a6d0e9871 (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.cs | 1 |
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; |