From 21f8ec1c49efd716669ca55ab946fadd5c97bb7e Mon Sep 17 00:00:00 2001 From: Bjoern Michaelsen Date: Sun, 20 May 2012 00:25:07 +0200 Subject: 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 --- vcl/unx/gtk/window/gtkframe.cxx | 1 + 1 file changed, 1 insertion(+) (limited to 'vcl') diff --git a/vcl/unx/gtk/window/gtkframe.cxx b/vcl/unx/gtk/window/gtkframe.cxx index eb77e756eb4c..36be0b223c41 100644 --- a/vcl/unx/gtk/window/gtkframe.cxx +++ b/vcl/unx/gtk/window/gtkframe.cxx @@ -3248,6 +3248,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 -- cgit