Port away from QApplication::syncX() in TabBox
This commit is contained in:
parent
46f57221e4
commit
8f94ee7d8f
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||||
;
|
;
|
||||||
|
|
Loading…
Reference in a new issue