commit 92bc1594419868484bfcd46a8b925630001068bb
parent 0bea6841ebe1b1b006e37c9518bb897bd1a85cbd
Author: Don Mahurin <dmahurin@users.sf.net>
Date: Thu, 20 Oct 2011 17:03:19 -0700
fullscreen patch
Diffstat:
2 files changed, 48 insertions(+), 0 deletions(-)
diff --git a/surf.suckless.org/patches/fullscreen.md b/surf.suckless.org/patches/fullscreen.md
@@ -0,0 +1,18 @@
+Fullscreen
+=================
+
+Description
+-----------
+
+Adds optional fullscreen mode (-f).
+
+Download
+--------
+
+* [surf-0.4.1-fullscreen.diff](surf-0.4.1-fullscreen.diff) (917) (20111020)
+
+Author
+------
+
+* Don Mahurin <[dmahurin@users.sf.net](mailto:dmahurin@users.sf.net)>
+
diff --git a/surf.suckless.org/patches/surf-0.4.1-fullscreen.diff b/surf.suckless.org/patches/surf-0.4.1-fullscreen.diff
@@ -0,0 +1,30 @@
+diff -r 2533f186089d surf.c
+--- a/surf.c Thu Mar 31 12:52:35 2011 +0200
++++ b/surf.c Thu Oct 20 17:03:08 2011 -0700
+@@ -60,6 +60,7 @@
+ static Client *clients = NULL;
+ static GdkNativeWindow embed = 0;
+ static gboolean showxid = FALSE;
++static gboolean fullscreen = FALSE;
+ static char winid[64];
+ static char *progname;
+ static gboolean loadimage = 1, plugin = 1, script = 1;
+@@ -433,6 +434,8 @@
+ * window class (WM_CLASS) is capped, while the resource is in
+ * lowercase. Both these values come as a pair.
+ */
++ if(fullscreen)
++ gtk_window_fullscreen(c->win);
+ gtk_window_set_wmclass(GTK_WINDOW(c->win), "surf", "surf");
+
+ /* TA: 20091214: And set the role here as well -- so that
+@@ -828,6 +831,9 @@
+ case 'x':
+ showxid = TRUE;
+ break;
++ case 'f':
++ fullscreen = TRUE;
++ break;
+ case 'v':
+ die("surf-"VERSION", © 2009 surf engineers, see LICENSE for details\n");
+ default: