Focus Issues

Dino Klein zagzag-lists at speakeasy.net
Wed Oct 4 16:43:30 MEST 2006


>(2) When using the GUI in Fedora Core, I have access to 4 virtual desktops/workspaces. Assume I have on desktop #1 a Mindterm window and some other window; furthermore, Mindterm is minimized, while the other window is visible and has the focus. I then proceed to switch to desktop #2, and then return to desktop #1. Upon returning, Mindterm will grab the focus, even though it is minimized; the expected behavior is that the application which had the focus, is the one that receives the focus (tested with other apps).
>  
>
Well, I finally decided I had enough of this, and did a quick search for 
where focus is requested, and I found out that the problem stems from a 
focus request in com.mindbright.application.windowDeiconified(); once 
commented out, I no longer had the problem mentioned above. Seems like 
the window manager handles virtual desktops by minimizing and hiding 
windows as the user switches from one desktop to the other.

The question is -- is it really necessary to ask for focus whenever the 
window is de-iconified? Doesn't the window manager on whatever platform 
the application is running does that by default? Or, should I ask, 
shouldn't assigning the focus be left to the window manager? After all, 
some window managers on Unix assign focus to the window over which of 
the mouse hovers, even if it is partially obscured by other windows.


More information about the Mindterm-users mailing list