From d48fbf286b6ae88218286d35493cd5416a7713a9 Mon Sep 17 00:00:00 2001 From: Dan Cape Date: Mon, 29 Feb 2016 15:26:12 -0500 Subject: QNX: Fixed issue with non Qt-related mm-renderer windows Windowgrabber would catch events from windows that were not related to Qt Media Playback. Now there is a check to ensure the window id to compare against is set before assigning the window to the Windowgrabber. Change-Id: Ic85198de5fdb05e9fa740fc7b3b81f3bdffd631d Reviewed-by: Marc Mutz Reviewed-by: James McDonnell Reviewed-by: Rafael Roquetto --- src/plugins/qnx/common/windowgrabber.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/qnx') diff --git a/src/plugins/qnx/common/windowgrabber.cpp b/src/plugins/qnx/common/windowgrabber.cpp index 51ce0dbf4..c16e38206 100644 --- a/src/plugins/qnx/common/windowgrabber.cpp +++ b/src/plugins/qnx/common/windowgrabber.cpp @@ -276,7 +276,8 @@ bool WindowGrabber::handleScreenEvent(screen_event_t screen_event) return false; } - if (m_windowId == idString) { + // Grab windows that have a non-empty ID string and a matching window id to grab + if (idString[0] != '\0' && m_windowId == idString) { m_window = window; start(); } -- cgit v1.2.3