Send notifications on desktop changes.
svn path=/trunk/kdebase/kwin/; revision=75432
This commit is contained in:
parent
c6c1779ea3
commit
f21e0fd688
3 changed files with 9 additions and 1 deletions
|
@ -68,6 +68,12 @@ void Events::raise( Event e )
|
|||
case ResizeEnd:
|
||||
event = "resizeend";
|
||||
break;
|
||||
default:
|
||||
if ((e > DesktopChange) && (e <= DesktopChange+16))
|
||||
{
|
||||
event = QString("desktop%1").arg(e-DesktopChange);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
if ( !event )
|
||||
|
|
3
events.h
3
events.h
|
@ -29,7 +29,8 @@ public:
|
|||
MoveStart,
|
||||
MoveEnd,
|
||||
ResizeStart,
|
||||
ResizeEnd
|
||||
ResizeEnd,
|
||||
DesktopChange = 100
|
||||
};
|
||||
|
||||
static void raise( Event );
|
||||
|
|
|
@ -1881,6 +1881,7 @@ void Workspace::setCurrentDesktop( int new_desktop ){
|
|||
optimized Desktop switching: unmapping done from back to front
|
||||
mapping done from front to back => less exposure events
|
||||
*/
|
||||
Events::raise((Events::Event) (Events::DesktopChange+new_desktop));
|
||||
|
||||
for ( ClientList::ConstIterator it = stacking_order.begin(); it != stacking_order.end(); ++it) {
|
||||
if ( (*it)->isVisible() && !(*it)->isOnDesktop( new_desktop ) ) {
|
||||
|
|
Loading…
Reference in a new issue