summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-05-20 00:25:07 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2012-05-21 16:29:18 +0200
commit5ae02ce08a270ea7a5c0dd6d37d95a29be2cbbf0 (patch)
tree98d757a8d108a3e0b1cbcfee58d50d8f5efb4e05
parentd4f45305ecdb38d3c2b5f91ec4f29cb89e29f770 (diff)
fdo#50173: fix Styles and Formatting gtk crasher
- when using the gtk vcl plugin, pressing F11 in writer crashes libreoffice on some systems with an X error - related: fdo#46687 Change-Id: I235cf327d812b606a357de859b1a959be728d2a1 Signed-off-by: Michael Meeks <michael.meeks@suse.com> Signed-off-by: Fridrich Štrba <fridrich.strba@bluewin.ch> Signed-off-by: Lubos Lunak <l.lunak@suse.cz>
-rw-r--r--vcl/unx/gtk/window/gtkframe.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx
index 3488adbb38c1..c5df600c6a19 100644
--- a/vcl/unx/gtk/window/gtkframe.cxx
+++ b/vcl/unx/gtk/window/gtkframe.cxx
@@ -3288,6 +3288,7 @@ gboolean GtkSalFrame::signalMap( GtkWidget *pWidget, GdkEvent*, gpointer frame )
XSetInputFocus( pThis->getDisplay()->GetDisplay(),
widget_get_xid(pWidget),
RevertToParent, CurrentTime );
+ XSync( pThis->getDisplay()->GetDisplay(), False );
GetGenericData()->ErrorTrapPop();
}
#else