Re: IconManager vs. IconRegion

Rhialto <[email protected]> Sun, 6 Oct 2024 14:18:19 +0200
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>

--9+bJloBpGTOynvO+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu 03 Oct 2024 at 12:55:35 -0700, Greg A. Woods wrote:
> However the main problem is that when I iconify some other app's window
> its icon just sits either where the cursor was when I iconified it, or
> perhaps in some more random position.
>=20
> I.e. with an IconManager in force the IconRegion seems to be
> ineffective!
>=20
> Has anyone else seen this problem?  I don't see anything in the manual
> page that would explain this (but I haven't read every word twice).

I agree that this sounds like a bug and as such the manual would not be
saying that IconManagers override/cancel IconRegion.

I looked through the source files icons.c and iconmgr.c and I didn't see
offhand anything that would explain it. The files seem pretty
independent. (I did notice that the drawing of the icons somehow uses
IconManagerShadowDepth in its sizing/positioning, which smells
incorrect, but would not be what we're looking for here).

Does the bug only occur when the icon manager window is visible?
I have some menu entries to toggle this:

    "Show Iconmgr"	f.showiconmgr
    "Hide Iconmgr"	f.hideiconmgr

Does it happen only for new windows that are being iconified for the
first time? (Generally icons remember their position after the first
creation) Is the IconRegion even supposed to be used when a window is
iconified for the second+ time, but the icon has been moved?

If it always happens, independent of the visibility of the icon manager
window, which directive that configures the icon manager in some way
triggers it?  I have at least these in my .ctwmrc

Color {
    ...
    IconManagerBackground "green" {
        "xload"         "DeepSkyBlue2"
        "xterm"         "maroon"
    }
    IconManagerHighlight "red"
    IconManagerForeground "Black"
}

IconManagerDontShow {
    "WorkSpaceManager"
}

IconManagerFont "-adobe-helvetica-bold-r-normal--*-100-*-*-*"

There is also NoIconManagers to suppress them "completely"

Maybe knowing the answers to this makes it easier to search for a cause.

-Olaf.
--=20
___ Olaf 'Rhialto' Seibert                            <rhialto/at/falu.nl>
\X/ There is no AI. There is just someone else's work.           --I. Rose

--9+bJloBpGTOynvO+
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQEzBAEBCAAdFiEEFVAhiiWjqgwBVdQAmYnGRWHD+9MFAmcCgAYACgkQmYnGRWHD
+9M2ugf/YoYb3nX4/gFKQpIB2Y23IgHyqqIHd94LMM/qqtT+0Ih9HREkzGG5U2Rh
K6JGVk5XTG+kU+9wnEMcOlDj97F0pdbussAYh1zsLuweQm2UcxVp9af8qxskwtV6
zldBc+Dp1XDmRqqDvgCBhFKM1HPTgynWzSGHTiOX8dB57baQNQxkZ34LZ2qsjozN
ylPne/LoKpd280iGpVoySgTh7CvF09AlocPSSX1li/QZ5Zv67xKLU1xZZhshrw3Q
7S5MzbpRZaAe87iXEvRpghN+Wx2qZNCohIJh66CE55rhKtJ135KNB5t7+p2ygay5
l/fzwOumfbs7Zz4MDUjpAWzl4MwGJQ==
=1LVX
-----END PGP SIGNATURE-----

--9+bJloBpGTOynvO+--