diff options
Diffstat (limited to 'dwm/dwm.c.rej')
-rw-r--r-- | dwm/dwm.c.rej | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/dwm/dwm.c.rej b/dwm/dwm.c.rej deleted file mode 100644 index 55e294a..0000000 --- a/dwm/dwm.c.rej +++ /dev/null @@ -1,53 +0,0 @@ ---- dwm.c -+++ dwm.c -@@ -1556,8 +1548,7 @@ setup(void) - sw = DisplayWidth(dpy, screen); - sh = DisplayHeight(dpy, screen); - root = RootWindow(dpy, screen); -- xinitvisual(); -- drw = drw_create(dpy, screen, root, sw, sh, visual, depth, cmap); -+ drw = drw_create(dpy, screen, root, sw, sh); - drw_load_fonts(drw, fonts, LENGTH(fonts)); - if (!drw->fontcount) - die("no fonts could be loaded.\n"); -@@ -1581,12 +1572,12 @@ setup(void) - cursor[CurResize] = drw_cur_create(drw, XC_sizing); - cursor[CurMove] = drw_cur_create(drw, XC_fleur); - /* init appearance */ -- scheme[SchemeNorm].border = drw_clr_create(drw, normbordercolor, borderalpha); -- scheme[SchemeNorm].bg = drw_clr_create(drw, normbgcolor, baralpha); -- scheme[SchemeNorm].fg = drw_clr_create(drw, normfgcolor, OPAQUE); -- scheme[SchemeSel].border = drw_clr_create(drw, selbordercolor, borderalpha); -- scheme[SchemeSel].bg = drw_clr_create(drw, selbgcolor, baralpha); -- scheme[SchemeSel].fg = drw_clr_create(drw, selfgcolor, OPAQUE); -+ scheme[SchemeNorm].border = drw_clr_create(drw, normbordercolor); -+ scheme[SchemeNorm].bg = drw_clr_create(drw, normbgcolor); -+ scheme[SchemeNorm].fg = drw_clr_create(drw, normfgcolor); -+ scheme[SchemeSel].border = drw_clr_create(drw, selbordercolor); -+ scheme[SchemeSel].bg = drw_clr_create(drw, selbgcolor); -+ scheme[SchemeSel].fg = drw_clr_create(drw, selfgcolor); - /* init bars */ - updatebars(); - updatestatus(); -@@ -1799,17 +1790,15 @@ updatebars(void) - Monitor *m; - XSetWindowAttributes wa = { - .override_redirect = True, -- .background_pixel = 0, -- .border_pixel = 0, -- .colormap = cmap, -+ .background_pixmap = ParentRelative, - .event_mask = ButtonPressMask|ExposureMask - }; - for (m = mons; m; m = m->next) { - if (m->barwin) - continue; -- m->barwin = XCreateWindow(dpy, root, m->wx, m->by, m->ww, bh, 0, depth, -- InputOutput, visual, -- CWOverrideRedirect|CWBackPixel|CWBorderPixel|CWColormap|CWEventMask, &wa); -+ m->barwin = XCreateWindow(dpy, root, m->wx, m->by, m->ww, bh, 0, DefaultDepth(dpy, screen), -+ CopyFromParent, DefaultVisual(dpy, screen), -+ CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); - XDefineCursor(dpy, m->barwin, cursor[CurNormal]->cursor); - XMapRaised(dpy, m->barwin); - } |