changeset 3144:fac1753d273c

Added zaphod fullscreen handling
author unexist
date Wed, 23 Nov 2011 18:25:09 +0100
parents 4273595140f5
children ed7353359a60
files src/subtle/client.c
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/subtle/client.c	Fri Nov 18 23:24:40 2011 +0100
+++ b/src/subtle/client.c	Wed Nov 23 18:25:09 2011 +0100
@@ -947,7 +947,13 @@
   /* Check flags */
   if(c->flags & SUB_CLIENT_MODE_FULL)
     {
-      XMoveResizeWindow(subtle->dpy, c->win, s->base.x, s->base.y,
+      /* Use all screens when in zaphod mode */
+      if(c->flags & SUB_CLIENT_MODE_ZAPHOD)
+        {
+          XMoveResizeWindow(subtle->dpy, c->win, 0, 0,
+            subtle->width, subtle->height);
+        }
+      else XMoveResizeWindow(subtle->dpy, c->win, s->base.x, s->base.y,
         s->base.width, s->base.height);
       XRaiseWindow(subtle->dpy, c->win);
     }