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

- Moved fullscreen level back above menus

- Small changes to the info panel messages
- Different geomview
- Fixed problem with waitpid returning <0 in monitor
This commit is contained in:
dan
2004-10-18 01:30:02 +00:00
parent 28050dab72
commit 27b9e27ae0
4 changed files with 20 additions and 10 deletions

View File

@@ -67,10 +67,10 @@ enum {
WMNormalLevel = 0, WMNormalLevel = 0,
WMFloatingLevel = 3, WMFloatingLevel = 3,
WMDockLevel = 5, WMDockLevel = 5,
WMFullscreenLevel = 7,
WMSubmenuLevel = 15, WMSubmenuLevel = 15,
WMMainMenuLevel = 20, WMMainMenuLevel = 20,
WMStatusLevel = 21, WMStatusLevel = 21,
WMFullscreenLevel = 50,
WMModalLevel = 100, WMModalLevel = 100,
WMPopUpLevel = 101, WMPopUpLevel = 101,
WMScreensaverLevel = 1000, WMScreensaverLevel = 1000,

View File

@@ -1395,10 +1395,11 @@ wShowInfoPanel(WScreen *scr)
strbuf = wstrappend(strbuf, _("\nSound enabled")); strbuf = wstrappend(strbuf, _("\nSound enabled"));
} }
strbuf = wstrappend(strbuf, _("; Antialiased text"));
#ifdef VIRTUAL_DESKTOP #ifdef VIRTUAL_DESKTOP
strbuf = wstrappend(strbuf, _(", VirtualDesktop")); if (wPreferences.vedge_thickness == 0)
strbuf = wstrappend(strbuf, _(", VirtualDesktop disabled"));
else
strbuf = wstrappend(strbuf, _(", VirtualDesktop enabled"));
#endif #endif
#ifdef XINERAMA #ifdef XINERAMA

View File

@@ -9,8 +9,9 @@ typedef struct W_GeometryView {
W_Class widgetClass; W_Class widgetClass;
WMView *view; WMView *view;
WMColor *black; WMColor *color;
WMColor *gray; WMColor *bgColor;
WMFont *font; WMFont *font;
WMSize textSize; WMSize textSize;
@@ -39,6 +40,7 @@ WCreateGeometryView(WMScreen *scr)
WGeometryView *gview; WGeometryView *gview;
char buffer[64]; char buffer[64];
static W_Class widgetClass = 0; static W_Class widgetClass = 0;
WMColor *color;
if (!widgetClass) { if (!widgetClass) {
widgetClass = W_RegisterUserWidget(); widgetClass = W_RegisterUserWidget();
@@ -68,8 +70,8 @@ WCreateGeometryView(WMScreen *scr)
return NULL; return NULL;
} }
gview->black = WMBlackColor(scr); gview->bgColor = WMCreateRGBColor(scr, 0x3333, 0x6666, 0x9999, True);
gview->gray = WMGrayColor(scr); gview->color = WMWhiteColor(scr);
WMCreateEventHandler(gview->view, ExposureMask, handleEvents, gview); WMCreateEventHandler(gview->view, ExposureMask, handleEvents, gview);
@@ -79,6 +81,8 @@ WCreateGeometryView(WMScreen *scr)
strlen(buffer)); strlen(buffer));
gview->textSize.height = WMFontHeight(gview->font); gview->textSize.height = WMFontHeight(gview->font);
WMSetWidgetBackgroundColor(gview, gview->bgColor);
W_ResizeView(gview->view, gview->textSize.width+8, W_ResizeView(gview->view, gview->textSize.width+8,
gview->textSize.height+6); gview->textSize.height+6);
@@ -125,7 +129,7 @@ paint(WGeometryView *gview)
WMDrawImageString(W_VIEW_SCREEN(gview->view), WMDrawImageString(W_VIEW_SCREEN(gview->view),
W_VIEW_DRAWABLE(gview->view), W_VIEW_DRAWABLE(gview->view),
gview->black, gview->gray, gview->font, gview->color, gview->bgColor, gview->font,
(W_VIEW_WIDTH(gview->view)-gview->textSize.width)/2, (W_VIEW_WIDTH(gview->view)-gview->textSize.width)/2,
(W_VIEW_HEIGHT(gview->view)-gview->textSize.height)/2, (W_VIEW_HEIGHT(gview->view)-gview->textSize.height)/2,
buffer, strlen(buffer)); buffer, strlen(buffer));

View File

@@ -94,6 +94,7 @@ int MonitorLoop(int argc, char **argv)
char **child_argv= wmalloc(sizeof(char*)*(argc+2)); char **child_argv= wmalloc(sizeof(char*)*(argc+2));
int i, status; int i, status;
time_t last_start; time_t last_start;
Bool error = False;
for (i= 0; i < argc; i++) for (i= 0; i < argc; i++)
child_argv[i]= argv[i]; child_argv[i]= argv[i];
@@ -122,10 +123,14 @@ int MonitorLoop(int argc, char **argv)
if ((exited=waitpid(-1, &status, 0)) < 0) if ((exited=waitpid(-1, &status, 0)) < 0)
{ {
wsyserror(_("Error during monitoring of Window Maker process.")); wsyserror(_("Error during monitoring of Window Maker process."));
error = True;
break; break;
} }
} while (exited != pid); } while (exited != pid);
if (error)
break;
child_argv[argc]= "--for-real-"; child_argv[argc]= "--for-real-";
/* Check if the wmaker process exited due to a crash */ /* Check if the wmaker process exited due to a crash */