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

show workspace name when changing workspace

This commit is contained in:
kojima
1999-04-17 18:24:23 +00:00
parent 57f0f4b245
commit b147e8f85c
13 changed files with 276 additions and 105 deletions

View File

@@ -155,7 +155,6 @@ alreadyRunningError(Display *dpy, XErrorEvent *error)
* not be freed by anybody.
*----------------------------------------------------------------------
*/
#ifndef NEWSTUFF
static void
allocButtonPixmaps(WScreen *scr)
{
@@ -182,8 +181,6 @@ allocButtonPixmaps(WScreen *scr)
pix->shared = 1;
scr->b_pixmaps[WBUT_KILL] = pix;
}
#endif
static void
@@ -366,7 +363,13 @@ allocGCs(WScreen *scr)
/* misc drawing GC */
gcv.graphics_exposures = False;
gcm = GCGraphicsExposures;
scr->draw_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);
scr->draw_gc = XCreateGC(dpy, scr->w_win, gcm, &gcv);
assert (scr->stipple_bitmap!=None);
/* mono GC */
scr->mono_gc = XCreateGC(dpy, scr->stipple_bitmap, gcm, &gcv);
}
@@ -538,6 +541,19 @@ createInternalWindows(WScreen *scr)
CopyFromParent, scr->w_visual, vmask, &attribs);
/* workspace name */
vmask = CWBackPixel|CWSaveUnder|CWOverrideRedirect|CWColormap
|CWBorderPixel;
attribs.save_under = True;
attribs.override_redirect = True;
attribs.colormap = scr->w_colormap;
attribs.background_pixel = scr->icon_back_texture->normal.pixel;
attribs.border_pixel = 0; /* do not care */
scr->workspace_name =
XCreateWindow(dpy, scr->root_win, 0, 0, 10, 10, 0, scr->w_depth,
CopyFromParent, scr->w_visual, vmask, &attribs);
/* for our window manager info notice board */
scr->info_window =
XCreateWindow(dpy, scr->root_win, 0, 0, 10, 10, 0, CopyFromParent,
@@ -758,6 +774,8 @@ wScreenInit(int screen_number)
scr->frame_border_pixel = xcol.pixel;
}
scr->workspace_name_font = wLoadFont(DEF_WORKSPACE_NAME_FONT);
/* create GCs with default values */
allocGCs(scr);