]> Pileus Git - wmpus/commitdiff
split full into full/max
authorAndy Spencer <andy753421@gmail.com>
Thu, 14 Jun 2012 07:17:28 +0000 (07:17 +0000)
committerAndy Spencer <andy753421@gmail.com>
Thu, 14 Jun 2012 07:17:28 +0000 (07:17 +0000)
sys-x11.c
sys.h

index 483844f17e151ce26d0636b16fc367510650233f..28fb9d91a14d223ddb0cab89675ae37301d6be1b 100644 (file)
--- a/sys-x11.c
+++ b/sys-x11.c
@@ -555,6 +555,10 @@ void sys_show(win_t *win, state_t state)
                XMapWindow(win->sys->dpy, win->sys->xid);
                XSync(win->sys->dpy, False);
                break;
+       case ST_MAX:
+               printf("sys_show: max %p\n", win);
+               XMapWindow(win->sys->dpy, win->sys->xid);
+               break;
        case ST_FULL:
                printf("sys_show: full %p\n", win);
                win_t *screen = NULL;
diff --git a/sys.h b/sys.h
index e3c024553d27be9aa75e09fada4dc3dcc0f7ba90..db18800c0724e20903652046744ce64bf83d1431 100644 (file)
--- a/sys.h
+++ b/sys.h
@@ -28,7 +28,8 @@
 typedef enum {
        ST_HIDE,  // completely hidden
        ST_SHOW,  // show as regular window
-       ST_FULL,  // fullscreen/maximized
+       ST_FULL,  // fullscreen (without decorations)
+       ST_MAX,   // maximized (with decorations)
        ST_SHADE, // show titlebar only
        ST_ICON,  // iconified/minimized
        ST_CLOSE, // close the window