diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-19 02:33:38 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-04-19 02:33:38 +0000 |
commit | 387117c2446a397a42698e9d8cfdf9ff1f371c96 (patch) | |
tree | eaeb7b8c318f6618de3a47dffdcd3ffe347ab7b6 /kicker | |
parent | 2f3e71bfb99194163418662d6324a2a2f4545e70 (diff) | |
download | tdebase-387117c2446a397a42698e9d8cfdf9ff1f371c96.tar.gz tdebase-387117c2446a397a42698e9d8cfdf9ff1f371c96.zip |
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
Diffstat (limited to 'kicker')
-rw-r--r-- | kicker/applets/minipager/pagerapplet.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<KMiniPagerButton*>::ConstIterator it; QValueList<KMiniPagerButton*>::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<KMiniPagerButton*>::ConstIterator it; QValueList<KMiniPagerButton*>::ConstIterator itEnd = m_desktops.end(); for( it = m_desktops.begin(); it != itEnd; ++it ) |