Skip to content

Commit

Permalink
qt5dxcb-plugin: rebuild against qt5.13
Browse files Browse the repository at this point in the history
  • Loading branch information
Johnnynator committed Jul 12, 2019
1 parent 70d7212 commit dc84907
Show file tree
Hide file tree
Showing 3 changed files with 1,331 additions and 1,174 deletions.
22 changes: 22 additions & 0 deletions srcpkgs/qt5dxcb-plugin/patches/deepin-qt5dxcb-plugin-qt5.13.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
diff --git a/platformplugin/windoweventhook.cpp b/platformplugin/windoweventhook.cpp
index 742b41d..428dcb0 100644
--- a/platformplugin/windoweventhook.cpp
+++ b/platformplugin/windoweventhook.cpp
@@ -359,6 +359,8 @@ void WindowEventHook::handleFocusInEvent(const xcb_focus_in_event_t *event)
if (relayFocusToModalWindow(w, xcbWindow->connection()))
return;

+ xcbWindow->connection()->focusInTimer().stop();
+
#if QT_VERSION >= QT_VERSION_CHECK(5, 9, 0)
xcbWindow->connection()->setFocusWindow(w);
#else
@@ -433,7 +435,7 @@ void WindowEventHook::handleFocusOutEvent(const xcb_focus_out_event_t *event)
// Do not set the active window to 0 if there is a FocusIn coming.
// There is however no equivalent for XPutBackEvent so register a
// callback for QXcbConnection instead.
- xcbWindow->connection()->addPeekFunc(focusInPeeker);
+ xcbWindow->connection()->focusInTimer().start(400);
}

void WindowEventHook::handlePropertyNotifyEvent(const xcb_property_notify_event_t *event)
Loading

0 comments on commit dc84907

Please sign in to comment.