When updating a user timestamp of a window, also always update timestamp

of the whole group (#75175).


svn path=/trunk/KDE/kdebase/workspace/; revision=500576
This commit is contained in:
Luboš Luňák 2006-01-20 15:49:03 +00:00
parent 7c6c0fec6e
commit 0dffb60c1f
2 changed files with 4 additions and 0 deletions

View file

@ -633,6 +633,7 @@ void Client::updateUserTime( Time time )
&& ( user_time == CurrentTime
|| timestampCompare( time, user_time ) > 0 )) // time > user_time
user_time = time;
group()->updateUserTime( user_time );
}
Time Client::readUserCreationTime() const

View file

@ -24,6 +24,7 @@ License. See the file "COPYING" for the exact licensing terms.
#include "notifications.h"
#include <QX11Info>
#include "rules.h"
#include "group.h"
namespace KWinInternal
{
@ -421,7 +422,9 @@ bool Client::manage( Window w, bool isMapped )
// - keep it?
XLowerWindow( QX11Info::display(), frameId());
// set initial user time directly
user_time = readUserTimeMapTimestamp( asn_valid ? &asn_id : NULL, asn_valid ? &asn_data : NULL, session );
group()->updateUserTime( user_time ); // and do what Client::updateUserTime() does
if( isTopMenu()) // they're shown in Workspace::addClient() if their mainwindow
hideClient( true ); // is the active one