Another minicli focus stealing prevention fix, this time for David.

svn path=/trunk/kdebase/kwin/; revision=255682
This commit is contained in:
Luboš Luňák 2003-10-02 14:38:17 +00:00
parent 52b2452085
commit cb51d8ebd6
2 changed files with 6 additions and 1 deletions

View file

@ -709,6 +709,7 @@ inline
Time Client::userTime() const
{
assert( user_time != CurrentTime );
assert( user_time != -1U );
return user_time;
}

View file

@ -474,8 +474,12 @@ bool Client::manage( Window w, bool isMapped )
if( isTopMenu())
hideClient( true );
if( user_time == CurrentTime ) // no known user time, set something old
if( user_time == CurrentTime || user_time == -1U ) // no known user time, set something old
{
user_time = qt_x_time - 1000000;
if( user_time == CurrentTime || user_time == -1U ) // let's be paranoid
user_time = qt_x_time - 1000000 + 10;
}
updateWorkareaDiffs( area );