mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dsdm: make it build
This commit is contained in:
parent
becacdba4a
commit
6660a892c1
3 changed files with 21 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
bin_PROGRAMS = dsdm
|
bin_PROGRAMS = dsdm
|
||||||
|
|
||||||
dsdm_LDADD = ${X_LIBS}
|
dsdm_LDADD = $(XTOOLLIB)
|
||||||
|
|
||||||
if SOLARIS
|
if SOLARIS
|
||||||
dsdm_LDADD += -ldl
|
dsdm_LDADD += -ldl
|
||||||
|
|
|
@ -64,11 +64,22 @@
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#if defined(SVR4)
|
#if defined(HAVE_CONFIG_H)
|
||||||
|
# include <autotools_config.h>
|
||||||
|
#endif
|
||||||
|
#if defined(HAVE_STRING_H)
|
||||||
# include <string.h>
|
# include <string.h>
|
||||||
#else /* SVR4 */
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_STRINGS_H)
|
||||||
# include <strings.h>
|
# include <strings.h>
|
||||||
#endif /* SVR4 */
|
#endif
|
||||||
|
|
||||||
|
#if defined(HAVE_SYS_TYPES_H)
|
||||||
|
# include <sys/types.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
|
||||||
#define XFreeDefn char *
|
#define XFreeDefn char *
|
||||||
|
|
||||||
|
@ -77,6 +88,8 @@
|
||||||
#include <X11/Xutil.h>
|
#include <X11/Xutil.h>
|
||||||
#include <X11/Xatom.h>
|
#include <X11/Xatom.h>
|
||||||
|
|
||||||
|
extern void ProxyInit(Display *dpy, Window dsdm_win);
|
||||||
|
extern void ProxyMain(Display *dpy, XEvent *event);
|
||||||
/*
|
/*
|
||||||
* Use DPRINTF to write debugging messages. Place all arguments in an
|
* Use DPRINTF to write debugging messages. Place all arguments in an
|
||||||
* extra pair of parentheses, like so:
|
* extra pair of parentheses, like so:
|
||||||
|
|
|
@ -185,7 +185,7 @@ extern Atom ATOM_WM_STATE;
|
||||||
|
|
||||||
unsigned char *GetInterestProperty();
|
unsigned char *GetInterestProperty();
|
||||||
|
|
||||||
static ForwardConversion();
|
static int ForwardConversion(XSelectionEvent *event, drop_info_t *drop_info);
|
||||||
|
|
||||||
static drop_info_t drop_table[DROP_TABLE_MAX];
|
static drop_info_t drop_table[DROP_TABLE_MAX];
|
||||||
Atom ATOM_SUN_DND_TRIGGER;
|
Atom ATOM_SUN_DND_TRIGGER;
|
||||||
|
@ -1134,7 +1134,7 @@ CopyTargets(Display *dpy, Atom prop, Window old_win, Window new_win)
|
||||||
/* Forward the SelectionNotify to the receiver.
|
/* Forward the SelectionNotify to the receiver.
|
||||||
Returns True if we get ATOM_SUN_DND_DONE or ATOM_SUN_SELECTION_END */
|
Returns True if we get ATOM_SUN_DND_DONE or ATOM_SUN_SELECTION_END */
|
||||||
static
|
static
|
||||||
ForwardConversion(XSelectionEvent *event, drop_info_t *drop_info)
|
int ForwardConversion(XSelectionEvent *event, drop_info_t *drop_info)
|
||||||
{
|
{
|
||||||
int ol_done = False;
|
int ol_done = False;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue