1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

- Fixed issues with crashing dialog not working

- Keep menu and title text at 12px since there is not constrained by width
- Removed some obsoleted options from wconfig.h
- Added a lighter image for the switch panel
This commit is contained in:
dan
2004-10-25 02:23:41 +00:00
parent 12b8b8ba58
commit 0d9b73cd74
9 changed files with 70 additions and 57 deletions

View File

@@ -5,6 +5,9 @@ Changes since version 0.90.0:
- new WPrefs icon (thanks to Largo) - new WPrefs icon (thanks to Largo)
- replaced VirtualEdgeThickness option, with EnableVirtualDesktop (boolean) - replaced VirtualEdgeThickness option, with EnableVirtualDesktop (boolean)
- enhanced alt-tab panel, added theming ability - enhanced alt-tab panel, added theming ability
- fixed issues with broken crash dialog
- removed obsoleted options from wconfig.h
Changes since version 0.80.2: Changes since version 0.80.2:
............................. .............................

View File

@@ -105,12 +105,12 @@
ConstrainWindowSize = NO; ConstrainWindowSize = NO;
ClipRaiseLowerKey = None; ClipRaiseLowerKey = None;
TitleJustify = center; TitleJustify = center;
WindowTitleFont = "Trebuchet MS,Luxi Sans:bold:pixelsize=11"; WindowTitleFont = "Trebuchet MS,Luxi Sans:bold:pixelsize=12";
MenuTitleFont = "Trebuchet MS,Luxi Sans:bold:pixelsize=11"; MenuTitleFont = "Trebuchet MS,Luxi Sans:bold:pixelsize=12";
MenuTextFont = "Trebuchet MS,Luxi Sans:pixelsize=11"; MenuTextFont = "Trebuchet MS,Luxi Sans:pixelsize=12";
IconTitleFont = "Arial,Luxi Sans:pixelsize=8"; IconTitleFont = "Arial,Luxi Sans:pixelsize=9";
ClipTitleFont = "Verdana:bold:pixelsize=10"; ClipTitleFont = "Verdana:bold:pixelsize=10";
DisplayFont = "Trebuchet MS,Luxi Sans:pixelsize=11"; DisplayFont = "Trebuchet MS,Luxi Sans:pixelsize=12";
LargeDisplayFont = "Trebuchet MS,Luxi Sans:pixelsize=24"; LargeDisplayFont = "Trebuchet MS,Luxi Sans:pixelsize=24";
HighlightColor = white; HighlightColor = white;
HighlightTextColor = black; HighlightTextColor = black;

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View File

@@ -561,7 +561,7 @@ keyPressHandler(XEvent *event, void *data)
KeySym ksym; KeySym ksym;
int iidx; int iidx;
int didx; int didx;
int item; int item = 0;
WMList *list = NULL; WMList *list = NULL;
if (event->type == KeyRelease) if (event->type == KeyRelease)
@@ -862,8 +862,8 @@ typedef struct {
#define COPYRIGHT_TEXT \ #define COPYRIGHT_TEXT \
"Copyright \xc2\xa9 1997-2004 Alfredo K. Kojima <kojima@windowmaker.org>\n"\ "Copyright \xc2\xa9 1997-2004 Alfredo K. Kojima\n"\
"Copyright \xc2\xa9 1998-2004 Dan Pascu <dan@windowmaker.org>" "Copyright \xc2\xa9 1998-2004 Dan Pascu"
@@ -1647,6 +1647,7 @@ setCrashAction(void *self, void *clientData)
} }
/* Make this read the logo from a compiled in pixmap -Dan */
static WMPixmap* static WMPixmap*
getWindowMakerIconImage(WMScreen *scr) getWindowMakerIconImage(WMScreen *scr)
{ {
@@ -1654,6 +1655,9 @@ getWindowMakerIconImage(WMScreen *scr)
WMPixmap *pix=NULL; WMPixmap *pix=NULL;
char *path; char *path;
if (!WDWindowAttributes || !WDWindowAttributes->dictionary)
return NULL;
WMPLSetCaseSensitive(True); WMPLSetCaseSensitive(True);
key = WMCreatePLString("Logo.WMPanel"); key = WMCreatePLString("Logo.WMPanel");
@@ -1732,10 +1736,10 @@ wShowCrashingDialogPanel(int whatSig)
} }
panel->nameL = WMCreateLabel(panel->win); panel->nameL = WMCreateLabel(panel->win);
WMResizeWidget(panel->nameL, 190, 18); WMResizeWidget(panel->nameL, 200, 30);
WMMoveWidget(panel->nameL, 80, 35); WMMoveWidget(panel->nameL, 80, 25);
WMSetLabelTextAlignment(panel->nameL, WALeft); WMSetLabelTextAlignment(panel->nameL, WALeft);
font = WMBoldSystemFontOfSize(scr, 18); font = WMBoldSystemFontOfSize(scr, 24);
WMSetLabelFont(panel->nameL, font); WMSetLabelFont(panel->nameL, font);
WMReleaseFont(font); WMReleaseFont(font);
WMSetLabelText(panel->nameL, _("Fatal error")); WMSetLabelText(panel->nameL, _("Fatal error"));

View File

@@ -582,12 +582,31 @@ getFullPath(char *path)
#endif #endif
int int
main(int argc, char **argv) main(int argc, char **argv)
{ {
int i; int i_am_the_monitor, i, len;
int i_am_the_monitor= 1; char *str, *alt;
/* setup common stuff for the monitor and wmaker itself */
WMInitializeApplication("WindowMaker", &argc, argv);
memset(&wPreferences, 0, sizeof(WPreferences));
wPreferences.fallbackWMs = WMCreateArray(8);
alt = getenv("WINDOWMAKER_ALT_WM");
if (alt != NULL)
WMAddToArray(wPreferences.fallbackWMs, wstrdup(alt));
WMAddToArray(wPreferences.fallbackWMs, wstrdup("blackbox"));
WMAddToArray(wPreferences.fallbackWMs, wstrdup("metacity"));
WMAddToArray(wPreferences.fallbackWMs, wstrdup("fvwm"));
WMAddToArray(wPreferences.fallbackWMs, wstrdup("twm"));
WMAddToArray(wPreferences.fallbackWMs, NULL);
WMAddToArray(wPreferences.fallbackWMs, wstrdup("rxvt"));
WMAddToArray(wPreferences.fallbackWMs, wstrdup("xterm"));
i_am_the_monitor= 1;
for (i= 1; i < argc; i++) for (i= 1; i < argc; i++)
{ {
@@ -596,8 +615,23 @@ main(int argc, char **argv)
i_am_the_monitor= 0; i_am_the_monitor= 0;
break; break;
} }
else if (strcmp(argv[i], "-display")==0 || strcmp(argv[i], "--display")==0)
{
i++;
if (i>=argc) {
wwarning(_("too few arguments for %s"), argv[i-1]);
exit(0);
}
DisplayName = argv[i];
}
} }
DisplayName = XDisplayName(DisplayName);
len = strlen(DisplayName)+64;
str = wmalloc(len);
snprintf(str, len, "DISPLAY=%s", DisplayName);
putenv(str);
if (i_am_the_monitor) if (i_am_the_monitor)
return MonitorLoop(argc, argv); return MonitorLoop(argc, argv);
else else
@@ -609,7 +643,7 @@ static int
real_main(int argc, char **argv) real_main(int argc, char **argv)
{ {
int i, restart=0; int i, restart=0;
char *str, *alt; char *str;
int d, s; int d, s;
int flag; int flag;
#ifdef DEBUG #ifdef DEBUG
@@ -635,9 +669,6 @@ real_main(int argc, char **argv)
Arguments[argc-1]= "--for-real="; Arguments[argc-1]= "--for-real=";
Arguments[argc]= NULL; Arguments[argc]= NULL;
WMInitializeApplication("WindowMaker", &argc, argv);
ProgName = strrchr(argv[0],'/'); ProgName = strrchr(argv[0],'/');
if (!ProgName) if (!ProgName)
ProgName = argv[0]; ProgName = argv[0];
@@ -647,21 +678,6 @@ real_main(int argc, char **argv)
restart = 0; restart = 0;
memset(&wPreferences, 0, sizeof(WPreferences));
wPreferences.fallbackWMs = WMCreateArray(8);
alt = getenv("WINDOWMAKER_ALT_WM");
if (alt != NULL)
WMAddToArray(wPreferences.fallbackWMs, wstrdup(alt));
WMAddToArray(wPreferences.fallbackWMs, wstrdup(FALLBACK_WINDOWMANAGER));
WMAddToArray(wPreferences.fallbackWMs, wstrdup("metacity"));
WMAddToArray(wPreferences.fallbackWMs, wstrdup("fvwm"));
WMAddToArray(wPreferences.fallbackWMs, wstrdup("twm"));
WMAddToArray(wPreferences.fallbackWMs, NULL);
WMAddToArray(wPreferences.fallbackWMs, wstrdup("rxvt"));
WMAddToArray(wPreferences.fallbackWMs, wstrdup("xterm"));
if (argc>1) { if (argc>1) {
for (i=1; i<argc; i++) { for (i=1; i<argc; i++) {
#ifdef USECPP #ifdef USECPP

View File

@@ -53,7 +53,7 @@ int showCrashDialog(int sig)
{ {
int crashAction; int crashAction;
dpy = XOpenDisplay(""); dpy = XOpenDisplay(NULL);
if (dpy) { if (dpy) {
/* XXX TODO make sure that window states are saved and restored via netwm */ /* XXX TODO make sure that window states are saved and restored via netwm */
@@ -66,7 +66,7 @@ int showCrashDialog(int sig)
crashAction = WMAbort; crashAction = WMAbort;
} }
if (crashAction == WMRestart) if (crashAction == WMStartAlternate)
{ {
int i; int i;
@@ -145,8 +145,9 @@ int MonitorLoop(int argc, char **argv)
* the crash panel and ask the user what to do */ * the crash panel and ask the user what to do */
if (time(NULL) - last_start < 3) if (time(NULL) - last_start < 3)
{ {
if (showCrashDialog(WTERMSIG(status)) == 0) if (showCrashDialog(WTERMSIG(status)) == 0) {
return 1; return 1;
}
} }
wwarning(_("Window Maker exited due to a crash (signal %i) and will be restarted."), wwarning(_("Window Maker exited due to a crash (signal %i) and will be restarted."),
WTERMSIG(status)); WTERMSIG(status));

View File

@@ -58,6 +58,7 @@
#include "defaults.h" #include "defaults.h"
#include "properties.h" #include "properties.h"
#include "dialog.h" #include "dialog.h"
#include "wmspec.h"
#ifdef XDND #ifdef XDND
#include "xdnd.h" #include "xdnd.h"
#endif #endif

View File

@@ -90,18 +90,6 @@
#define SHAPED_BALLOON #define SHAPED_BALLOON
/*
* Define NO_EMERGENCY_AUTORESTART if you don't want another window manager
* automatically started when WindowMaker crashes. The X session will die
* in some cases if wmaker crashes and autorestart is disabled.
*/
#undef NO_EMERGENCY_AUTORESTART
/*
* The window manager that is autorestarted
*/
#define FALLBACK_WINDOWMANAGER "blackbox"
/* /*
* Turn on a hack to make mouse and keyboard actions work even if * Turn on a hack to make mouse and keyboard actions work even if
* the NumLock or ScrollLock modifiers are turned on. They might * the NumLock or ScrollLock modifiers are turned on. They might
@@ -269,12 +257,12 @@
#define DEF_FRAME_COLOR "white" #define DEF_FRAME_COLOR "white"
#define DEF_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=11\"" #define DEF_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=12\""
#define DEF_MENU_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=11\"" #define DEF_MENU_TITLE_FONT "\"Trebuchet MS,Luxi Sans:bold:pixelsize=12\""
#define DEF_MENU_ENTRY_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=11\"" #define DEF_MENU_ENTRY_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=12\""
#define DEF_ICON_TITLE_FONT "\"Arial,Luxi Sans:pixelsize=8\"" #define DEF_ICON_TITLE_FONT "\"Arial,Luxi Sans:pixelsize=9\""
#define DEF_CLIP_TITLE_FONT "\"Verdana:bold:pixelsize=10\"" #define DEF_CLIP_TITLE_FONT "\"Verdana:bold:pixelsize=10\""
#define DEF_INFO_TEXT_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=11\"" #define DEF_INFO_TEXT_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=12\""
#define DEF_WORKSPACE_NAME_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=24\"" #define DEF_WORKSPACE_NAME_FONT "\"Trebuchet MS,Luxi Sans:pixelsize=24\""