NetBSD Problem Report #57113

From  Thu Dec 15 13:37:35 2022
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 269A71A921F
	for <>; Thu, 15 Dec 2022 13:37:35 +0000 (UTC)
Message-Id: <>
Date: Thu, 15 Dec 2022 13:37:33 +0000 (UTC)
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
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.
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.

NetBSD Home
NetBSD PR Database Search

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