Send notifications on desktop changes.

svn path=/trunk/kdebase/kwin/; revision=75432
This commit is contained in:
Waldo Bastian 2000-12-21 21:04:52 +00:00
parent c6c1779ea3
commit f21e0fd688
3 changed files with 9 additions and 1 deletions

View file

@ -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 )

View file

@ -29,7 +29,8 @@ public:
MoveStart,
MoveEnd,
ResizeStart,
ResizeEnd
ResizeEnd,
DesktopChange = 100
};
static void raise( Event );

View file

@ -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 ) ) {