Comment 9 for bug 1131385

Revision history for this message
Taihsiang Ho (tai271828) wrote :

Focus method mentioned in comment #8 should be in line 418

namely the two variables "active" and "scaleWasActive" are false.

A window which set as "Always on Top" make wm.IsWindowOnTop(xid) return false,
and this make "any_on_top" keep false.
Finally "active" will be set as false.

More information:
if there are two windows set as "Always onTop", this bug could be reproduced.
This is because wm.IsWindowOnTop could not make "any_on_top" be true, nor would make "active" true.

NEXT: why does wm.IsWindowOnTop(xid) return false when the window is set as "Always on Top"