X11: Qt::ActiveWindowFocusReason in QFocusEvent when appropriate
authorShawn Rutledge <shawn.rutledge@digia.com>
Tue, 21 Jan 2014 14:11:03 +0000 (15:11 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 21 Jan 2014 20:21:16 +0000 (21:21 +0100)
commitdebe31e047060d790fb32c06e514d9df476df8bf
treedca6220afab063b826ccee259b158b0b60df1cc8
parent5b570c287f0ddd8897a22acc53416b1f89c11da7
X11: Qt::ActiveWindowFocusReason in QFocusEvent when appropriate

When one window loses focus because another window got it, the reason
should not be Qt::OtherFocusReason.  If it is ActiveWindowFocusReason
or PopupFocusReason, any QtQuick text elements that were in the
window which lost focus will not deselect any selected text.

Task-number: QTBUG-36292
Change-Id: I4630f74e6aacd928284cedab6ed711c95b24bff7
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
src/plugins/platforms/xcb/qxcbwindow.cpp