diff options
| author | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-16 09:51:04 +0800 |
|---|---|---|
| committer | Huang Peng <shawn.p.huang@gmail.com> | 2008-09-16 09:51:04 +0800 |
| commit | d0dde689e9462a2ae5708c4e881c4b4ec29643ac (patch) | |
| tree | 64ee4666b835d91d0daf052fac0f70cd16bb69a9 /client | |
| parent | 33906829dbed822ce1d9c02caaf1e547f59b5d53 (diff) | |
| download | ibus-d0dde689e9462a2ae5708c4e881c4b4ec29643ac.tar.gz ibus-d0dde689e9462a2ae5708c4e881c4b4ec29643ac.tar.xz ibus-d0dde689e9462a2ae5708c4e881c4b4ec29643ac.zip | |
FocusOut widget when widgetDestroyed.
Diffstat (limited to 'client')
| -rw-r--r-- | client/qt4/ibus-input-context.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/client/qt4/ibus-input-context.cpp b/client/qt4/ibus-input-context.cpp index ec71e6e..c5e85c7 100644 --- a/client/qt4/ibus-input-context.cpp +++ b/client/qt4/ibus-input-context.cpp @@ -147,6 +147,10 @@ IBusInputContext::setFocusWidget (QWidget *widget) void IBusInputContext::widgetDestroyed (QWidget *widget) { + if (has_focus) { + client->focusOut (this); + has_focus = false; + } QInputContext::widgetDestroyed (widget); update (); } |
