Subject: pkg/9539: Icon Manager focus not maintained properly
To: None <>
From: None <>
List: netbsd-bugs
Date: 03/04/2000 14:36:37
>Number:         9539
>Category:       pkg
>Synopsis:       Icon Manager focus not maintained properly
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager (NetBSD software packages system bug manager)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar  4 14:36:00 2000
>Originator:     Mathew Richardson
>Release:        1.4U

When switching virtual desktops while a window has the focus, such that
the window loses the focus, the icon manager isn't updated to reflect
the loss of focus.
Configure tvtwm with a virtual desktop, an icon manager, and the 
ability to move around your virtual desktop without using the mouse.
Open a window no larger than the screen.  Position the pointer on
your screen such that it is inside the open window, but won't be
after moving the virtual desktop.  Move the virtual desktop.

Notice that the iconmanager still presents the window as having
the focus (even though it doesn't.)
One fix is to remove the focus from the current window before
moving the virtual desktop... here's a patch that does that.
This patch is applied to the original menus.c ... prior to the
rest of the other NetBSD patches.

--- menus.c.orig        Sat Mar  4 17:32:53 2000
+++ menus.c     Sat Mar  4 17:32:57 2000
@@ -2049,6 +2049,7 @@
     case F_SCROLLUP:
     case F_SCROLLDOWN:
     case F_SCROLLBACK:
+       FocusOnRoot();
        ScrollDesktop(func, action);