Re: Implemented _NET_MOVERESIZE_WINDOW

Rhialto <[email protected]> Tue, 26 Aug 2025 12:15:16 +0200
Newsgroups gmane.comp.window-managers.ctwm
Message-ID <[email protected]>

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

On Mon 25 Aug 2025 at 10:23:40 +0200, Paul Schutte wrote:
> The lack of any other strategy. The only way to use HandleConfigureRequest
> is to use the global Event, it does not take parameters.
> The other option would be to basically duplicate HandleConfigureRequest
> just so you can pass it an Event structure.

That sounds like it would be useful to change HandleConfigureRequest()
=66rom using the global Event to taking a parameter, and if really needed
to add a convenience function that calls the new version with the global
Event.

HandleConfigureRequest() already does "XConfigureRequestEvent *cre =3D
&Event.xconfigurerequest" at the top, and uses cre for *most* (but now
all) cases, so introducing a parameter for this seems like it should not
be too disruptive. Mainly it means to understand this comment:

        /*
         * Event.xany.window is Event.xconfigurerequest.parent, so Tmp_win =
will
         * be wrong
         */
        Event.xany.window =3D cre->window;    /* mash parent field */
        Tmp_win =3D GetTwmWindow(cre->window);

Hopefully it calls no functions that also use the global Event directly;
that would need to be checked.

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

--sd1uN0Emfh16n1kA
Content-Type: application/pgp-signature; name=signature.asc

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

iQEzBAEBCAAdFiEEFVAhiiWjqgwBVdQAmYnGRWHD+9MFAmitiS8ACgkQmYnGRWHD
+9N6DQf/ajS2dmZPIPTOkDl1STSXUp7lFrkjMCVRNruxI/deyK7xMu5TZfhYJiKA
oorWUWewuJ7+CaMgB0NtczleicJdgMpw+N9yXR2nQIaKb6i4SxFtHUwAWehfAm4Q
4nHISNDQ/rtrOuWpFyAuXd1C2X8jso5XjM9k0R2XXAH1k+Es6Z6xF5KQpaUaj+J3
wbXM23cgAPitRHbCWnqTw4c5dw2uQd4SK6UQOex8Erimhyj4x5VSsjV9bcYlMvaD
JbSY5VMd86Ym7d4ByVYsPgm+SlgKWBNahxdlWW3OjWuB0QL/H04asxGu+qw4jTYG
hmasTsfc8pxVN9FsdYFaC+8JRQ//3A==
=njR6
-----END PGP SIGNATURE-----

--sd1uN0Emfh16n1kA--