diff options
author | B. Watson <yalhcru@gmail.com> | 2017-01-21 22:09:53 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-01-24 07:23:25 +0700 |
commit | 023ef991d2dacc69747d7335db1299edaa16d201 (patch) | |
tree | f58e39dd03d0bb58857d37ad382c154e4197fad6 /network/surf/patches/startfullscreen.diff | |
parent | df6bba04a4e329f85d0f0ea1b035bf5114fa7efe (diff) | |
download | slackbuilds-023ef991d2dacc69747d7335db1299edaa16d201.tar.gz |
network/surf: Updated for version 0.7.
Diffstat (limited to 'network/surf/patches/startfullscreen.diff')
-rw-r--r-- | network/surf/patches/startfullscreen.diff | 70 |
1 files changed, 0 insertions, 70 deletions
diff --git a/network/surf/patches/startfullscreen.diff b/network/surf/patches/startfullscreen.diff deleted file mode 100644 index 45e1f87f53..0000000000 --- a/network/surf/patches/startfullscreen.diff +++ /dev/null @@ -1,70 +0,0 @@ -diff -Naur surf-0.6/surf.1 surf-0.6.patched/surf.1 ---- surf-0.6/surf.1 2013-02-10 13:40:14.000000000 -0500 -+++ surf-0.6.patched/surf.1 2013-07-03 18:41:35.000000000 -0400 -@@ -50,6 +50,8 @@ - .B \-x - Prints xid to standard output. This can be used to script the browser by using - .BR xprop(1). -+.B \-f -+Start in fullscreen mode. - .SH USAGE - .B Escape - Stops loading current page or stops download. -diff -Naur surf-0.6/surf.c surf-0.6.patched/surf.c ---- surf-0.6/surf.c 2013-02-10 13:40:14.000000000 -0500 -+++ surf-0.6.patched/surf.c 2013-07-03 18:42:07.000000000 -0400 -@@ -81,6 +81,7 @@ - static Client *clients = NULL; - static GdkNativeWindow embed = 0; - static gboolean showxid = FALSE; -+static gboolean startfullscreen = FALSE; - static char winid[64]; - static gboolean usingproxy = 0; - static char togglestat[5]; -@@ -463,7 +464,7 @@ - } else { - gtk_window_fullscreen(GTK_WINDOW(c->win)); - } -- c->fullscreen = !c->fullscreen; -+ startfullscreen = c->fullscreen = !c->fullscreen; - } - - static const char * -@@ -822,6 +823,9 @@ - } - } - -+ if(startfullscreen) { -+ fullscreen(c, NULL); -+ } - return c; - } - -@@ -846,6 +850,8 @@ - cmd[i++] = "-i"; - if(showxid) - cmd[i++] = "-x"; -+ if(startfullscreen) -+ cmd[i++] = "-f"; - cmd[i++] = "--"; - uri = arg->v ? (char *)arg->v : c->linkhover; - if(uri) -@@ -1148,7 +1154,7 @@ - - static void - usage(void) { -- die("usage: %s [-inpsvx] [-c cookiefile] [-e xid] [-r scriptfile]" -+ die("usage: %s [-inpsvxf] [-c cookiefile] [-e xid] [-r scriptfile]" - " [-t stylefile] [-u useragent] [uri]\n", basename(argv0)); - } - -@@ -1215,6 +1221,9 @@ - case 'x': - showxid = TRUE; - break; -+ case 'f': -+ startfullscreen = TRUE; -+ break; - default: - usage(); - } ARGEND; |