From 06820d7c774aee3b2578cbd3c9ef242574483c0c Mon Sep 17 00:00:00 2001 From: Hugo Pereira Da Costa Date: Mon, 23 Apr 2012 11:26:42 +0200 Subject: [PATCH] fixed active item detection when rendering drag pixmap. --- clients/oxygen/oxygenclient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/oxygen/oxygenclient.cpp b/clients/oxygen/oxygenclient.cpp index f633c3d962..b210c6e2f0 100644 --- a/clients/oxygen/oxygenclient.cpp +++ b/clients/oxygen/oxygenclient.cpp @@ -1897,7 +1897,7 @@ namespace Oxygen renderWindowBackground( &painter, geometry, widget(), widget()->palette() ); // darken background if item is inactive - const bool itemActive = !( itemValid && tabId(index) != currentTabId() ); + const bool itemActive = (tabCount() <= 1) || !( itemValid && tabId(index) != currentTabId() ); if( !itemActive ) {