diff options
author | Marc Horowitz <marc@mit.edu> | 1992-05-07 18:37:55 +0000 |
---|---|---|
committer | Marc Horowitz <marc@mit.edu> | 1992-05-07 18:37:55 +0000 |
commit | 179851e1e1d30d7decb76a78025b5ac7d47640b6 (patch) | |
tree | 7a5dc7c51ec56a749980b9cd1a665492971a04dd /zwgc/xselect.c | |
parent | 1ccde9351c3c5d680ab2a09b55175fa5e55ba395 (diff) |
WM_DELETE_WINDOW support and unlink_gram support
Diffstat (limited to 'zwgc/xselect.c')
-rw-r--r-- | zwgc/xselect.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/zwgc/xselect.c b/zwgc/xselect.c index f691514..59ed16c 100644 --- a/zwgc/xselect.c +++ b/zwgc/xselect.c @@ -19,6 +19,7 @@ static char rcsid_xselect_c[] = "$Id$"; #include <zephyr/mit-copyright.h> /* xselect.c - ICCCM compliant cut-and-paste */ +/* also includes some other ICCCMisms, such as the WM_PROTOCOL handling */ #include <stdio.h> #include <X11/Xlib.h> @@ -31,12 +32,15 @@ extern char *getSelectedText(); static Time ownership_start = CurrentTime; static Time ownership_end = CurrentTime; +Atom XA_WM_PROTOCOLS,XA_WM_DELETE_WINDOW; static Atom ZA_TARGETS,ZA_MULTIPLE,ZA_TIMESTAMP,ZA_ATOM_PAIR; static struct _ZAtom { Atom *patom; char *name; } ZAtom[] = { + {&XA_WM_PROTOCOLS,"WM_PROTOCOLS"}, + {&XA_WM_DELETE_WINDOW,"WM_DELETE_WINDOW"}, {&ZA_TARGETS,"TARGETS"}, {&ZA_MULTIPLE,"MULTIPLE"}, {&ZA_TIMESTAMP,"TIMESTAMP"}, @@ -130,7 +134,7 @@ static void xselSetProperties(dpy,w,property,target,selreq) /* global functions */ -void xselInitAtoms(dpy) +void xicccmInitAtoms(dpy) Display *dpy; { int i; |