Mantis - Squeak
Viewing Issue Advanced Details
6765 Morphic minor always 11-13-07 09:22 11-14-07 08:32
TRee  
 
normal  
new 3.10  
open  
none    
none  
0006765: Click a SystemWindow; it does not go on top of a regular Morph, only on top of other SystemWindows
Squeak3.10beta.7143

A DemoMorph, sco Morph, covers part of the screen.
DemoMorph>>mouseDown: is written so that a DemoMorph goes to front when clicked.
A SystemWindow, e.g., a Browser, does NOT go to front when clicked.
Karl pointed out that the problem was caused by
  SystemWindow>>mouseDown: evt
    ...
    TopWindow == self ifFalse:
        [evt hand releaseKeyboardFocus.
        self activate]
        ...
System Window only only goes on top of its own current TopWindow!!

I hacked this solution that fixed the problem for me:
  SystemWindow>>mouseDown: evt
    ...
    ((w := self world) notNil and: [w firstSubmorph == self])
    ifFalse:
        [evt hand releaseKeyboardFocus.
        self activate]
        ...
child of 0005124new  SystemWindows is ripe for a refactoring. 

Notes
(0011435)
wiz   
11-14-07 01:14   
Hi TRee,

It would be good if you could briefly describe the desired behavior for the record.

Yours in curiosity and service, --Jerome Peace
(0011436)
TRee   
11-14-07 08:32   
Expected behavior is that a window will go to front (be wholly visible on the screen) when it is clicked.