NetBSD Problem Report #57113

From www@netbsd.org  Thu Dec 15 13:37:35 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 269A71A921F
	for <gnats-bugs@gnats.NetBSD.org>; Thu, 15 Dec 2022 13:37:35 +0000 (UTC)
Message-Id: <20221215133733.744AD1A9239@mollari.NetBSD.org>
Date: Thu, 15 Dec 2022 13:37:33 +0000 (UTC)
From: cryintothebluesky@gmail.com
Reply-To: cryintothebluesky@gmail.com
To: gnats-bugs@NetBSD.org
Subject: ctwm window focus is buggy when enabled with SaveWorkspaceFocus
X-Send-Pr-Version: www-1.0

>Number:         57113
>Category:       misc
>Synopsis:       ctwm window focus is buggy when enabled with SaveWorkspaceFocus
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 15 13:40:00 +0000 2022
>Originator:     Sad Clouds
>Release:        NetBSD 9.3_STABLE
>Organization:
>Environment:
>Description:
When SaveWorkspaceFocus is enabled in .ctwmrc and switching between different workspaces via keyboard shortcuts, then quite often focus highlighting of windows borders is buggy and done incorrectly.

Since NetBSD adopted ctwm as the default window manager, and there appears to be no official ctwm bug tracking system, I'm opening this bug on NetBSD.
>How-To-Repeat:
1. Edit .ctwmrc and enable SaveWorkspaceFocus and ClickToFocus.
2. Enable multiple workspaces and keyboard shortcut to switch between them.
3. Open two xterm windows on each workspace, e.g. if you have a total of 4 workspaces, then you should have a total of 2 x 4 = 8 xterm windows.
4. Note which xterm window is currently in focus on various workspaces and different window border highlight color.
5. Switch between workspaces via keyboard shortcut and without clicking on any windows. As you keep switching in random order, you will notice that on some workspaces both xterm windows appear to be in focus at the same time, i.e. window borders are highlighted on both windows.

Correct operation should be such that each workspace should remember which windows was in focus last time and only this one window should have its border highlighted.
>Fix:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.47 2022/09/11 19:34:41 kim Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2022 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.