[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: kdelibs/kdeui
From: Leon Bottou <leonb () research ! att ! com>
Date: 2003-02-22 17:59:59
[Download RAW message or body]
CVS commit by leonb:
Smallish improvement of focus signaling.
M +12 -3 qxembed.cpp 1.35
--- kdelibs/kdeui/qxembed.cpp #1.34:1.35
@@ -477,5 +477,6 @@ QXEmbed::QXEmbed(QWidget *parent, const
if (isActiveWindow())
if ( !((QPublicWidget*) topLevelWidget())->topData()->embedded )
- XSetInputFocus( qt_xdisplay(), d->focusProxy->winId(), RevertToParent, qt_x_time );
+ XSetInputFocus( qt_xdisplay(), d->focusProxy->winId(),
+ RevertToParent, qt_x_time );
setAcceptDrops( TRUE );
@@ -575,5 +576,7 @@ bool QXEmbed::eventFilter( QObject *o, Q
if ( o == topLevelWidget() ) {
if ( !((QPublicWidget*) topLevelWidget())->topData()->embedded )
- XSetInputFocus( qt_xdisplay(), d->focusProxy->winId(), RevertToParent, qt_x_time );
+ if (! hasFocus() )
+ XSetInputFocus( qt_xdisplay(), d->focusProxy->winId(),
+ RevertToParent, qt_x_time );
if (d->xplain)
checkGrab();
@@ -637,4 +640,7 @@ void QXEmbed::focusInEvent( QFocusEvent
if (!window)
return;
+ if ( !((QPublicWidget*) topLevelWidget())->topData()->embedded )
+ XSetInputFocus( qt_xdisplay(), d->focusProxy->winId(),
+ RevertToParent, qt_x_time );
if (d->xplain) {
checkGrab();
@@ -659,4 +665,7 @@ void QXEmbed::focusOutEvent( QFocusEvent
send_xembed_message( window, XEMBED_FOCUS_OUT );
}
+ if ( !((QPublicWidget*) topLevelWidget())->topData()->embedded )
+ XSetInputFocus( qt_xdisplay(), d->focusProxy->winId(),
+ RevertToParent, qt_x_time );
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic