Show the desktop switch popupinfo also when using mouse, and whatever.
BUG: 80698 svn path=/trunk/KDE/kdebase/kwin/; revision=409960
This commit is contained in:
parent
8bc13480e3
commit
d4c5fd676a
5 changed files with 5 additions and 21 deletions
|
@ -270,7 +270,6 @@ void Workspace::activateClient( Client* c, bool force )
|
||||||
++block_focus;
|
++block_focus;
|
||||||
setCurrentDesktop( c->desktop() );
|
setCurrentDesktop( c->desktop() );
|
||||||
--block_focus;
|
--block_focus;
|
||||||
// popupinfo->showInfo( desktopName(currentDesktop()) ); // AK - not sure
|
|
||||||
}
|
}
|
||||||
if( c->isMinimized())
|
if( c->isMinimized())
|
||||||
c->unminimize();
|
c->unminimize();
|
||||||
|
|
|
@ -70,7 +70,6 @@ License. See the file "COPYING" for the exact licensing terms.
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "workspace.h"
|
#include "workspace.h"
|
||||||
#include "tabbox.h"
|
#include "tabbox.h"
|
||||||
#include "popupinfo.h"
|
|
||||||
#include "group.h"
|
#include "group.h"
|
||||||
#include "rules.h"
|
#include "rules.h"
|
||||||
|
|
||||||
|
|
|
@ -1073,7 +1073,6 @@ void Workspace::tabBoxKeyRelease( const XKeyEvent& ev )
|
||||||
if ( tab_box->currentDesktop() != -1 )
|
if ( tab_box->currentDesktop() != -1 )
|
||||||
{
|
{
|
||||||
setCurrentDesktop( tab_box->currentDesktop() );
|
setCurrentDesktop( tab_box->currentDesktop() );
|
||||||
// popupinfo->showInfo( desktopName(currentDesktop()) ); // AK - not sure
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,7 +34,6 @@ License. See the file "COPYING" for the exact licensing terms.
|
||||||
#include <kapplication.h>
|
#include <kapplication.h>
|
||||||
#include <qregexp.h>
|
#include <qregexp.h>
|
||||||
|
|
||||||
#include "popupinfo.h"
|
|
||||||
#include "killwindow.h"
|
#include "killwindow.h"
|
||||||
#include "tabbox.h"
|
#include "tabbox.h"
|
||||||
|
|
||||||
|
@ -571,7 +570,6 @@ void Workspace::slotSwitchDesktopNext()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setCurrentDesktop(d);
|
setCurrentDesktop(d);
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspace::slotSwitchDesktopPrevious()
|
void Workspace::slotSwitchDesktopPrevious()
|
||||||
|
@ -585,7 +583,6 @@ void Workspace::slotSwitchDesktopPrevious()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
setCurrentDesktop(d);
|
setCurrentDesktop(d);
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspace::slotSwitchDesktopRight()
|
void Workspace::slotSwitchDesktopRight()
|
||||||
|
@ -594,7 +591,6 @@ void Workspace::slotSwitchDesktopRight()
|
||||||
if( desktop == currentDesktop())
|
if( desktop == currentDesktop())
|
||||||
return;
|
return;
|
||||||
setCurrentDesktop( desktop );
|
setCurrentDesktop( desktop );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspace::slotSwitchDesktopLeft()
|
void Workspace::slotSwitchDesktopLeft()
|
||||||
|
@ -603,7 +599,6 @@ void Workspace::slotSwitchDesktopLeft()
|
||||||
if( desktop == currentDesktop())
|
if( desktop == currentDesktop())
|
||||||
return;
|
return;
|
||||||
setCurrentDesktop( desktop );
|
setCurrentDesktop( desktop );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspace::slotSwitchDesktopUp()
|
void Workspace::slotSwitchDesktopUp()
|
||||||
|
@ -612,7 +607,6 @@ void Workspace::slotSwitchDesktopUp()
|
||||||
if( desktop == currentDesktop())
|
if( desktop == currentDesktop())
|
||||||
return;
|
return;
|
||||||
setCurrentDesktop( desktop );
|
setCurrentDesktop( desktop );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspace::slotSwitchDesktopDown()
|
void Workspace::slotSwitchDesktopDown()
|
||||||
|
@ -621,13 +615,11 @@ void Workspace::slotSwitchDesktopDown()
|
||||||
if( desktop == currentDesktop())
|
if( desktop == currentDesktop())
|
||||||
return;
|
return;
|
||||||
setCurrentDesktop( desktop );
|
setCurrentDesktop( desktop );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Workspace::slotSwitchToDesktop( int i )
|
void Workspace::slotSwitchToDesktop( int i )
|
||||||
{
|
{
|
||||||
setCurrentDesktop( i );
|
setCurrentDesktop( i );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -776,7 +768,6 @@ void Workspace::slotWindowToNextDesktop()
|
||||||
setClientIsMoving( c );
|
setClientIsMoving( c );
|
||||||
setCurrentDesktop( d );
|
setCurrentDesktop( d );
|
||||||
setClientIsMoving( NULL );
|
setClientIsMoving( NULL );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -795,7 +786,6 @@ void Workspace::slotWindowToPreviousDesktop()
|
||||||
setClientIsMoving( c );
|
setClientIsMoving( c );
|
||||||
setCurrentDesktop( d );
|
setCurrentDesktop( d );
|
||||||
setClientIsMoving( NULL );
|
setClientIsMoving( NULL );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -811,7 +801,6 @@ void Workspace::slotWindowToDesktopRight()
|
||||||
setClientIsMoving( c );
|
setClientIsMoving( c );
|
||||||
setCurrentDesktop( d );
|
setCurrentDesktop( d );
|
||||||
setClientIsMoving( NULL );
|
setClientIsMoving( NULL );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -827,7 +816,6 @@ void Workspace::slotWindowToDesktopLeft()
|
||||||
setClientIsMoving( c );
|
setClientIsMoving( c );
|
||||||
setCurrentDesktop( d );
|
setCurrentDesktop( d );
|
||||||
setClientIsMoving( NULL );
|
setClientIsMoving( NULL );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -843,7 +831,6 @@ void Workspace::slotWindowToDesktopUp()
|
||||||
setClientIsMoving( c );
|
setClientIsMoving( c );
|
||||||
setCurrentDesktop( d );
|
setCurrentDesktop( d );
|
||||||
setClientIsMoving( NULL );
|
setClientIsMoving( NULL );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -859,7 +846,6 @@ void Workspace::slotWindowToDesktopDown()
|
||||||
setClientIsMoving( c );
|
setClientIsMoving( c );
|
||||||
setCurrentDesktop( d );
|
setCurrentDesktop( d );
|
||||||
setClientIsMoving( NULL );
|
setClientIsMoving( NULL );
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -942,7 +928,7 @@ void Workspace::showWindowMenu( const QRect &pos, Client* cl )
|
||||||
*/
|
*/
|
||||||
void Workspace::slotWindowClose()
|
void Workspace::slotWindowClose()
|
||||||
{
|
{
|
||||||
if ( tab_box->isVisible() || popupinfo->isVisible() )
|
if ( tab_box->isVisible())
|
||||||
return;
|
return;
|
||||||
Client* c = active_popup_client ? active_popup_client : active_client;
|
Client* c = active_popup_client ? active_popup_client : active_client;
|
||||||
performWindowOperation( c, Options::CloseOp );
|
performWindowOperation( c, Options::CloseOp );
|
||||||
|
|
|
@ -1070,6 +1070,7 @@ bool Workspace::setCurrentDesktop( int new_desktop )
|
||||||
// TODO Q_ASSERT( block_stacking_updates == 0 ); // make sure stacking_order is up to date
|
// TODO Q_ASSERT( block_stacking_updates == 0 ); // make sure stacking_order is up to date
|
||||||
StackingUpdatesBlocker blocker( this );
|
StackingUpdatesBlocker blocker( this );
|
||||||
|
|
||||||
|
int old_desktop = current_desktop;
|
||||||
if (new_desktop != current_desktop)
|
if (new_desktop != current_desktop)
|
||||||
{
|
{
|
||||||
/*
|
/*
|
||||||
|
@ -1080,7 +1081,6 @@ bool Workspace::setCurrentDesktop( int new_desktop )
|
||||||
|
|
||||||
ObscuringWindows obs_wins;
|
ObscuringWindows obs_wins;
|
||||||
|
|
||||||
int old_desktop = current_desktop;
|
|
||||||
current_desktop = new_desktop; // change the desktop (so that Client::updateVisibility() works)
|
current_desktop = new_desktop; // change the desktop (so that Client::updateVisibility() works)
|
||||||
|
|
||||||
for ( ClientList::ConstIterator it = stacking_order.begin(); it != stacking_order.end(); ++it)
|
for ( ClientList::ConstIterator it = stacking_order.begin(); it != stacking_order.end(); ++it)
|
||||||
|
@ -1178,6 +1178,9 @@ bool Workspace::setCurrentDesktop( int new_desktop )
|
||||||
// for( uint i = 0; i < desktop_focus_chain.size(); i++ )
|
// for( uint i = 0; i < desktop_focus_chain.size(); i++ )
|
||||||
// s += QString::number(desktop_focus_chain[i]) + ", ";
|
// s += QString::number(desktop_focus_chain[i]) + ", ";
|
||||||
// kdDebug(1212) << s << "}\n";
|
// kdDebug(1212) << s << "}\n";
|
||||||
|
|
||||||
|
if( old_desktop != 0 ) // not for the very first time
|
||||||
|
popupinfo->showInfo( desktopName(currentDesktop()) );
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1186,7 +1189,6 @@ void Workspace::nextDesktop()
|
||||||
{
|
{
|
||||||
int desktop = currentDesktop() + 1;
|
int desktop = currentDesktop() + 1;
|
||||||
setCurrentDesktop(desktop > numberOfDesktops() ? 1 : desktop);
|
setCurrentDesktop(desktop > numberOfDesktops() ? 1 : desktop);
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// called only from DCOP
|
// called only from DCOP
|
||||||
|
@ -1194,7 +1196,6 @@ void Workspace::previousDesktop()
|
||||||
{
|
{
|
||||||
int desktop = currentDesktop() - 1;
|
int desktop = currentDesktop() - 1;
|
||||||
setCurrentDesktop(desktop > 0 ? desktop : numberOfDesktops());
|
setCurrentDesktop(desktop > 0 ? desktop : numberOfDesktops());
|
||||||
popupinfo->showInfo( desktopName(currentDesktop()) );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int Workspace::desktopToRight( int desktop ) const
|
int Workspace::desktopToRight( int desktop ) const
|
||||||
|
|
Loading…
Reference in a new issue