Changeset 561 for trunk/src/gui/kernel/qx11embed_x11.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/gui/kernel/qx11embed_x11.cpp
r2 r561 2 2 ** 3 3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). 4 ** Contact: Qt Software Information ([email protected]) 4 ** All rights reserved. 5 ** Contact: Nokia Corporation ([email protected]) 5 6 ** 6 7 ** This file is part of the QtGui module of the Qt Toolkit. … … 21 22 ** will be met: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html. 22 23 ** 23 ** In addition, as a special exception, Nokia gives you certain 24 ** additional rights. These rights are described in the Nokia Qt LGPL 25 ** Exception version 1.0, included in the file LGPL_EXCEPTION.txt in this 26 ** package. 24 ** In addition, as a special exception, Nokia gives you certain additional 25 ** rights. These rights are described in the Nokia Qt LGPL Exception 26 ** version 1.1, included in the file LGPL_EXCEPTION.txt in this package. 27 27 ** 28 28 ** GNU General Public License Usage … … 34 34 ** met: http://www.gnu.org/copyleft/gpl.html. 35 35 ** 36 ** If you are unsure which license is appropriate for your use, please37 ** contact the sales department at qt-sales@nokia.com.36 ** If you 37 ** @nokia.com. 38 38 ** $QT_END_LICENSE$ 39 39 ** 40 40 ****************************************************************************/ 41 41 42 42 43 #include "qx11embed_x11.h" 43 44 #include <qapplication.h> … … 123 124 124 125 There are XEmbed widgets available for KDE and GTK+. The GTK+ 125 equivalent of QX11EmbedWidget is GtkPlug. The KDE widget is called126 QXEmbed.126 equivalent of QX11EmbedWidget is GtkPlug. The 127 QXEmbed. 127 128 128 129 \sa QX11EmbedContainer, {XEmbed Specification} … … 177 178 lost. 178 179 179 The GTK+ equivalent of QX11EmbedContainer is GtkSocket. The KDE180 widget is called QXEmbed.180 The GTK+ equivalent of QX11EmbedContainer is GtkSocket. The 181 widget is called QXEmbed. 181 182 182 183 \sa QX11EmbedWidget, {XEmbed Specification} … … 827 828 &bytes_after_return, &prop_return) == Success) { 828 829 if (nitems_return > 1) { 829 if ((( int* )prop_return)[1] & XEMBED_MAPPED) {830 if ((( * )prop_return)[1] & XEMBED_MAPPED) { 830 831 XMapWindow(x11Info().display(), internalWinId()); 831 832 } else { … … 1298 1299 // keypresses. 1299 1300 if (o == window() && d->client) { 1300 if (!d->isEmbedded() && d->activeContainer == this)1301 d->moveInputToProxy();1302 1303 1301 if (d->clientIsXEmbed) { 1304 1302 sendXEmbedMessage(d->client, x11Info().display(), XEMBED_WINDOW_ACTIVATE); … … 1308 1306 XSetInputFocus(x11Info().display(), d->client, XRevertToParent, x11Time()); 1309 1307 } 1308 1309 1310 1310 } 1311 1311 break; … … 1672 1672 clientIsXEmbed = true; 1673 1673 1674 unsigned int *p = (unsigned int*)prop_return;1674 *)prop_return; 1675 1675 if (nitems_return >= 2) 1676 clientversion = p[0];1676 clientversion = p[0]; 1677 1677 } 1678 1678 … … 1730 1730 if (q->hasFocus()) { 1731 1731 XSetInputFocus(q->x11Info().display(), client, XRevertToParent, x11Time()); 1732 } else {1733 if (!isEmbedded())1734 moveInputToProxy();1735 1732 } 1733 1734 1735 1736 1736 } 1737 1737 … … 1750 1750 { 1751 1751 Q_Q(QX11EmbedContainer); 1752 WId focus; 1753 int revert_to; 1754 XGetInputFocus(q->x11Info().display(), &focus, &revert_to); 1755 if (focus != focusProxy->internalWinId()) 1756 XSetInputFocus(q->x11Info().display(), focusProxy->internalWinId(), XRevertToParent, x11Time()); 1752 // Following Owen Taylor's advice from the XEmbed specification to 1753 // always use CurrentTime when no explicit user action is involved. 1754 XSetInputFocus(q->x11Info().display(), focusProxy->internalWinId(), XRevertToParent, CurrentTime); 1757 1755 } 1758 1756
Note:
See TracChangeset
for help on using the changeset viewer.