diff options
| author | Octavian Cerna <octavian.cerna@gmail.com> | 2013-01-16 01:42:25 +0200 |
|---|---|---|
| committer | Octavian Cerna <octavian.cerna@gmail.com> | 2013-01-16 01:42:25 +0200 |
| commit | c2aff7e1695fbedaa10ab2048bcad3a930adb674 (patch) | |
| tree | f3704f235f81a0634f33ec768aedbbed2287ad61 | |
| parent | f4c34b4ccd7233a20a3a6f032913ae8cf6ebf51b (diff) | |
Mark the bar window as a dock-window to disable the drop-shadow drawn by the compositing manager.
| -rw-r--r-- | dwm.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -2285,6 +2285,8 @@ updatebars(void) { .background_pixmap = ParentRelative, .event_mask = ButtonPressMask|ExposureMask }; + Atom net_wm_type_dock = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DOCK", False); + for(m = mons; m; m = m->next) { w = m->ww; if(showsystray && m == selmon) @@ -2292,6 +2294,9 @@ updatebars(void) { m->barwin = XCreateWindow(dpy, root, m->wx, m->by, w, bh, 0, DefaultDepth(dpy, screen), CopyFromParent, DefaultVisual(dpy, screen), CWOverrideRedirect|CWBackPixmap|CWEventMask, &wa); + /* mark it as a dock window, for proper compositing */ + XChangeProperty(dpy, m->barwin, netatom[NetWMWindowType], XA_ATOM, 32, + PropModeReplace, (unsigned char*)&net_wm_type_dock, 1); XDefineCursor(dpy, m->barwin, cursor[CurNormal]); XMapRaised(dpy, m->barwin); } |
