JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
create _MOTIF_WM_HINTS atom
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 0a488fa..5e9b184 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1205,7 +1205,8 @@ monocle(Monitor *m) {
                if (c == m->sel) {
                        resize(c, m->wx, m->wy, m->ww - 2 * c->bw, m->wh - 2 * c->bw, False, 0);
                } else {
-                       resize(c, m->wx, m->wy - 4000, m->ww - 2 * c->bw, m->wh - 2 * c->bw, False, 0);
+                       // this window is should not be visible. move off top, but don't change h/w
+                       resize(c, m->wx, m->wy - 4000, c->w, c->h, False, 0);
                }
        }
 }
@@ -1657,6 +1658,7 @@ setup(void) {
        netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False);
        netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False);
        netatom[NetSupportingWMCheck] = XInternAtom(dpy, "_NET_SUPPORTING_WM_CHECK", False);
+       XInternAtom(dpy, "_MOTIF_WM_HINTS", False); /* clients may request borderless/fullscreen */
        /* init cursors */
        cursor[CurNormal] = drw_cur_create(drw, XC_left_ptr);
        cursor[CurResize] = drw_cur_create(drw, XC_sizing);