| surf-0.4.1-fullscreen.diff - sites - public wiki contents of suckless.org | |
| git clone git://git.suckless.org/sites | |
| Log | |
| Files | |
| 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 resourc… | |
| 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", "sur… | |
| 19 | |
| 20 /* TA: 20091214: And set the role here as well -- so … | |
| 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, se… | |
| 30 default: |