Menu

#92 Focused window not raised on close

closed-fixed
bugfix (78)
5
2003-08-30
2003-08-25
Anonymous
No

Using Alt-Escape confuses icewn 1.2.8 and above so that
when a window focused by Alt-Escape is closed, the new
active window is not raised. Steps to reproduce:

Switch to a screen without windows.
Ctrl-Escape + Enter + 1 - this runs "Terminal" from the
menu and puts "1"
to the command prompt. We'll call it window 1.
Ctrl-Escape + Enter + 2 (make window 2)
Ctrl-Escape + Enter + 3 (make window 3)
Alt-Escape - this focuses and raises window 2.
Alt-F4 - this closes window 2.

Expected result: Either window 1 or window 3 should be
focused. The same window should be on top.

Actual result: Window 1 is on top. Window 3 has
keyboard focus.

I have no ~/.icewm, so I'm using the default
configuration. The mouse wasn't even touched to
reproduce the bug. The bug has been entered to the
Debian bug tracking system as #207097.

Here's what I have found. When a window is closed,
IceWM tries to give focus to the window that was
focused last. There is no guarantee that that window
is actually on the top of the stack. In fact,
Alt-Escape sends the last focused window to the bottom.

I'm leaving to IceWM developers to decide why they want
to keep track of the last focused window. It's not as
intuitive as focusing the top window, in my opinion.
But if somebody wrote that code, somebody must like it.

Anyway, if we are focusing a window that is not on the
top, it should be brought to the top first. I'm not an
active developer and I could have missed some
considerations. However, activation before focusing is
consistent with the implementation of
YFrameWindow::wmLastWindow() (Shift-Alt-Escape).

Discussion

  • Nobody/Anonymous

    Fix for raising window focused on close

     
  • Marko Macek

    Marko Macek - 2003-08-30

    Logged In: YES
    user_id=1814

    Applied something like it.

    I agree that focusing top window is sometimes more intutitive.
    But the current mechanisms solves many problems when
    currently active window is not on always top.

    If there is bad behavior in some cases, please report it.

     
  • Marko Macek

    Marko Macek - 2003-08-30
    • assigned_to: nobody --> captnmark
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB