From 387117c2446a397a42698e9d8cfdf9ff1f371c96 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 19 Apr 2010 02:33:38 +0000 Subject: Enhanced Compiz support Added preliminary ability for allowing specific hotkeys to execute global shortcut actions while the desktop lock is active. The primary use for this is to switch monitors while the screen is still locked (with the switch-monitor hotkey) so that the user can login. git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdebase@1116279 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kicker/applets/minipager/pagerapplet.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'kicker/applets') diff --git a/kicker/applets/minipager/pagerapplet.cpp b/kicker/applets/minipager/pagerapplet.cpp index 5c761c03f..0998957cc 100644 --- a/kicker/applets/minipager/pagerapplet.cpp +++ b/kicker/applets/minipager/pagerapplet.cpp @@ -493,6 +493,9 @@ void KMiniPager::drawButtons() void KMiniPager::slotSetDesktopCount( int ) { + QSize s(m_kwin->numberOfViewports(m_kwin->currentDesktop())); + m_useViewports = s.width() * s.height() > 1; + QValueList::ConstIterator it; QValueList::ConstIterator itEnd = m_desktops.end(); for( it = m_desktops.begin(); it != itEnd; ++it ) @@ -515,6 +518,9 @@ void KMiniPager::slotSetDesktopCount( int ) void KMiniPager::slotRefreshViewportCount( int ) { + QSize s(m_kwin->numberOfViewports(m_kwin->currentDesktop())); + m_useViewports = s.width() * s.height() > 1; + QValueList::ConstIterator it; QValueList::ConstIterator itEnd = m_desktops.end(); for( it = m_desktops.begin(); it != itEnd; ++it ) -- cgit v1.2.1