surf-0.4.1-fullscreen.diff - sites - public wiki contents of suckless.org
(HTM) git clone git://git.suckless.org/sites
(DIR) Log
(DIR) Files
(DIR) Refs
---
surf-0.4.1-fullscreen.diff (917B)
---
1 diff -r 2533f186089d surf.c
2 --- a/surf.c Thu Mar 31 12:52:35 2011 +0200
3 +++ b/surf.c Thu Oct 20 17:03:08 2011 -0700
4 @@ -60,6 +60,7 @@
5 static Client *clients = NULL;
6 static GdkNativeWindow embed = 0;
7 static gboolean showxid = FALSE;
8 +static gboolean fullscreen = FALSE;
9 static char winid[64];
10 static char *progname;
11 static gboolean loadimage = 1, plugin = 1, script = 1;
12 @@ -433,6 +434,8 @@
13 * window class (WM_CLASS) is capped, while the resource is in
14 * lowercase. Both these values come as a pair.
15 */
16 + if(fullscreen)
17 + gtk_window_fullscreen(c->win);
18 gtk_window_set_wmclass(GTK_WINDOW(c->win), "surf", "surf");
19
20 /* TA: 20091214: And set the role here as well -- so that
21 @@ -828,6 +831,9 @@
22 case 'x':
23 showxid = TRUE;
24 break;
25 + case 'f':
26 + fullscreen = TRUE;
27 + break;
28 case 'v':
29 die("surf-"VERSION", © 2009 surf engineers, see LICENSE for details\n");
30 default: