Wed Nov 3 18:17:52 2004 Michael Jennings (mej)

Small patch for building against libast 0.6.1.

Fixed compile error when enabling OFFIX_DND support pointed out by JG
Miller <miller@yoyo.org>.
----------------------------------------------------------------------


SVN revision: 12140
This commit is contained in:
Michael Jennings 2004-11-03 23:18:45 +00:00
parent 5c1c47b132
commit 7db420d474
3 changed files with 11 additions and 2 deletions

View File

@ -5250,3 +5250,10 @@ Fri Jul 23 12:27:18 2004 Michael Jennings (mej)
Oops, missed one. :(
----------------------------------------------------------------------
Wed Nov 3 18:17:52 2004 Michael Jennings (mej)
Small patch for building against libast 0.6.1.
Fixed compile error when enabling OFFIX_DND support pointed out by JG
Miller <miller@yoyo.org>.
----------------------------------------------------------------------

View File

@ -344,7 +344,7 @@ handle_client_message(event_t *ev)
XGetWindowProperty(Xdisplay, Xroot, props[PROP_DND_SELECTION], 0L, 1000000L, False, AnyPropertyType, &ActualType, &ActualFormat, &Size, &RemainingBytes, &data);
if (data != NULL) {
XChangeProperty(Xdisplay, Xroot, XA_CUT_BUFFER0, XA_STRING, 8, PropModeReplace, data, strlen(data));
selection_paste(Xroot, XA_CUT_BUFFER0, True);
selection_paste(XA_CUT_BUFFER0);
XSetInputFocus(Xdisplay, Xroot, RevertToNone, CurrentTime);
XFree(data);
}

View File

@ -102,7 +102,9 @@ eterm_bootstrap(int argc, char *argv[])
}
/* This MUST be called before any other Xlib functions */
#ifdef SPIFOPT_SETTING_PREPARSE
SPIFOPT_FLAG_SET(SPIFOPT_SETTING_PREPARSE);
#endif
spifopt_parse(argc, argv);
init_defaults();