From 7a71ab72eaffefbde20df023f4e1227d73fba992 Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Wed, 29 Feb 2012 16:42:22 +0100 Subject: [PATCH] make sure the tapped window gets activated if when the tabbox is open another window that does -not- appear in the tabbox gets focus, tapping on the same thumbnail as the last active window won't produce any effect, the patch makes sure that window gets activated, even if it has the currentIndex REVIEW:104096 --- tabbox/declarative.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tabbox/declarative.cpp b/tabbox/declarative.cpp index 5f5a59d050..17a19499b2 100644 --- a/tabbox/declarative.cpp +++ b/tabbox/declarative.cpp @@ -287,6 +287,7 @@ void DeclarativeView::setCurrentIndex(const QModelIndex &index) void DeclarativeView::currentIndexChanged(int row) { tabBox->setCurrentIndex(m_model->index(row, 0)); + KWindowSystem::forceActiveWindow(m_model->data(m_model->index(row, 0), ClientModel::WIdRole).toLongLong()); } void DeclarativeView::updateQmlSource(bool force)