1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-11 03:05:52 +01:00

This update includes the 0.20.3pre3 code

This commit is contained in:
dan
1998-11-23 11:32:19 +00:00
parent 59eb947539
commit 9007a6575d
88 changed files with 4862 additions and 4026 deletions

View File

@@ -27,6 +27,25 @@
#include <string.h>
#include <errno.h>
#if !defined(HAVE_STRERROR) && defined(BSD)
#define HAVE_STRERROR
char *
strerror(int errnum)
{
extern int errno, sys_nerr;
#ifndef __DECC
extern char *sys_errlist[];
#endif
static char buf[] = "Unknown error 12345678901234567890";
if (errno < sys_nerr)
return sys_errlist[errnum];
sprintf (buf, "Unknown error %d", errnum);
return buf;
}
#endif
extern char *_WINGS_progname;

View File

@@ -166,7 +166,13 @@ WMGetStandardUserDefaults(void)
sharedUserDefaults = defaults;
/* set to save changes in defaults when program is exited */
#if !defined(HAVE_ATEXIT) && defined(HAVE_ON_EXIT)
on_exit(saveDefaultsChanges,0);
#else
atexit(saveDefaultsChanges);
#endif
}
return sharedUserDefaults;

View File

@@ -436,10 +436,11 @@ paintItem(WMList *lPtr, Drawable d, char *text, int state, WMRect *rect)
else
XClearArea(scr->display, d, x, y, width, height, False);
if (text)
W_PaintText(view, d, scr->normalFont, x+4, y, width,
if (text) {
W_PaintText(view, d, scr->normalFont, x+4, y, width,
WALeft, W_GC(scr->black), False, text, strlen(text));
}
if (state & WLDSIsBranch) {
XDrawLine(scr->display, d, W_GC(scr->darkGray), x+width-11, y+3,
x+width-6, y+height/2);

View File

@@ -839,7 +839,7 @@ handleTextFieldActionEvents(XEvent *event, void *data)
event->xbutton.x);
paintTextField(tPtr);
}
if (event->xbutton.button == Button2) {
if (event->xbutton.button == Button2 && tPtr->flags.enabled) {
char *text;
text = W_GetTextSelection(tPtr->view->screen, XA_PRIMARY);

View File

@@ -330,7 +330,7 @@ setSizeHints(WMWindow *win)
static void
writeGNUstepWMAttr(WMScreen *scr, Window window, GNUstepWMAttributes *attr)
{
CARD32 data[9];
unsigned long data[9];
/* handle idiot compilers where array of CARD32 != struct of CARD32 */
data[0] = attr->flags;