Another minicli focus stealing prevention fix, this time for David.
svn path=/trunk/kdebase/kwin/; revision=255682
This commit is contained in:
parent
52b2452085
commit
cb51d8ebd6
2 changed files with 6 additions and 1 deletions
1
client.h
1
client.h
|
@ -709,6 +709,7 @@ inline
|
||||||
Time Client::userTime() const
|
Time Client::userTime() const
|
||||||
{
|
{
|
||||||
assert( user_time != CurrentTime );
|
assert( user_time != CurrentTime );
|
||||||
|
assert( user_time != -1U );
|
||||||
return user_time;
|
return user_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -474,8 +474,12 @@ bool Client::manage( Window w, bool isMapped )
|
||||||
if( isTopMenu())
|
if( isTopMenu())
|
||||||
hideClient( true );
|
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;
|
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 );
|
updateWorkareaDiffs( area );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue