[PATCH 1/4] WINGs: fix TARGETS request return type
0 views
Skip to first unread message
david.m...@gmail.com
unread,
Jan 22, 2026, 5:29:47 PM (11 days ago) Jan 22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Window Maker Development
According to the ICCCM, a reply to a TARGETS request must be a list of atoms. Took the chance to also fix variable naming consistency between wtext and wtextfield which are using the same kind of code. --- WINGs/wtext.c | 32 ++++++++++++++++---------------- WINGs/wtextfield.c | 20 ++++++++++---------- 2 files changed, 26 insertions(+), 26 deletions(-)
/* These id are used when sharing the selected text between applications */ -static Atom XA_Targets = None; -static Atom XA_Format_Text = None; -static Atom XA_Format_Compound_Text = None; +static Atom XA_TARGETS = None; +static Atom XA_TEXT = None; +static Atom XA_COMPOUND_TEXT = None;
-if (XA_Targets == None) { +if (XA_TARGETS == None) { /* * Because the X protocol guaranties that the value will never change in * the lifespan of the server, we query the values only the first time a * widget is created */ -XA_Targets = XInternAtom(dpy, "TARGETS", False); -XA_Format_Text = XInternAtom(dpy, "TEXT", False); -XA_Format_Compound_Text = XInternAtom(dpy, "COMPOUND_TEXT", False); +XA_TARGETS = XInternAtom(dpy, "TARGETS", False); +XA_TEXT = XInternAtom(dpy, "TEXT", False); +XA_COMPOUND_TEXT = XInternAtom(dpy, "COMPOUND_TEXT", False); }
/* Parameter not used, but tell the compiler that it is ok */ @@ -251,7 +251,7 @@ static WMData *requestHandler(WMView * view, Atom selection, Atom target, void * count = tPtr->selection.count < 0 ? tPtr->selection.position + tPtr->selection.count : tPtr->selection.position;