Port away from QApplication::syncX() in TabBox

icc-effect-5.14.5
Martin Gräßlin 2013-08-06 10:26:45 +02:00
parent 46f57221e4
commit 8f94ee7d8f
1 changed files with 2 additions and 1 deletions

View File

@ -42,6 +42,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "unmanaged.h" #include "unmanaged.h"
#include "virtualdesktops.h" #include "virtualdesktops.h"
#include "workspace.h" #include "workspace.h"
#include "xcbutils.h"
// Qt // Qt
#include <QAction> #include <QAction>
#include <QX11Info> #include <QX11Info>
@ -705,7 +706,7 @@ void TabBox::hide(bool abort)
if (isDisplayed()) if (isDisplayed())
kDebug(1212) << "Tab box was not properly closed by an effect"; kDebug(1212) << "Tab box was not properly closed by an effect";
m_tabBox->hide(abort); m_tabBox->hide(abort);
QApplication::syncX(); Xcb::sync();
XEvent otherEvent; XEvent otherEvent;
while (XCheckTypedEvent(display(), EnterNotify, &otherEvent)) while (XCheckTypedEvent(display(), EnterNotify, &otherEvent))
; ;