Remove insert patch - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset 600882224632eb138cb53691b6e9bd12ae114196
(DIR) parent 56d631e3ef68f8f17db227bbe565bc4728580832
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sat, 1 Jun 2019 20:38:10
Remove insert patch
Diffstat:
wip/surf-git/patch-surf.c | 49 -----------------------------------------------
1 files changed, 0 insertions(+), 49 deletions(-)
---
diff -r 56d631e3ef68 -r 600882224632 wip/surf-git/patch-surf.c
--- a/wip/surf-git/patch-surf.c Sat Jun 01 20:37:50 2019 +0200
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-$NetBSD$
-
-Apply modal patch, mostly based on:
- <https://surf.suckless.org/patches/modal/>
-
---- surf.c.orig 2019-03-06 11:19:52.000000000 +0000
-+++ surf.c
-@@ -231,6 +231,7 @@ static void togglefullscreen(Client *c,
- static void togglecookiepolicy(Client *c, const Arg *a);
- static void toggleinspector(Client *c, const Arg *a);
- static void find(Client *c, const Arg *a);
-+static void insert(Client *c, const Arg *a);
-
- /* Buttons */
- static void clicknavigate(Client *c, const Arg *a, WebKitHitTestResult *h);
-@@ -244,6 +245,7 @@ static Atom atoms[AtomLast];
- static Window embed;
- static int showxid;
- static int cookiepolicy;
-+static int insertmode;
- static Display *dpy;
- static Client *clients;
- static GdkDevice *gdkkb;
-@@ -1333,7 +1335,11 @@ winevent(GtkWidget *w, GdkEvent *e, Clie
- updatetitle(c);
- break;
- case GDK_KEY_PRESS:
-- if (!curconfig[KioskMode].val.i) {
-+ if (!curconfig[KioskMode].val.i &&
-+ !insertmode ||
-+ CLEANMASK(e->key.state) == (MODKEY|GDK_SHIFT_MASK) ||
-+ CLEANMASK(e->key.state) == (MODKEY) ||
-+ gdk_keyval_to_lower(e->key.keyval) == (GDK_KEY_Escape)) {
- for (i = 0; i < LENGTH(keys); ++i) {
- if (gdk_keyval_to_lower(e->key.keyval) ==
- keys[i].keyval &&
-@@ -1948,6 +1954,12 @@ find(Client *c, const Arg *a)
- }
-
- void
-+insert(Client *c, const Arg *a)
-+{
-+ insertmode = (a->i);
-+}
-+
-+void
- clicknavigate(Client *c, const Arg *a, WebKitHitTestResult *h)
- {
- navigate(c, a);