diff options
| author | miguel <miguel@localhost> | 2018-03-19 19:26:54 +0100 |
|---|---|---|
| committer | miguel <miguel@localhost> | 2018-03-19 19:26:54 +0100 |
| commit | 5389c0ccce709b101505725ac258b2fa74c52fee (patch) | |
| tree | ebe2b8b0e00bcb5fe79feeec1dc53e05c31c1384 | |
| parent | 47757191f41251b5de0c84abe891624bde02aa72 (diff) | |
added quit (to close singulary windows)
| -rw-r--r-- | config.h | 2 | ||||
| -rw-r--r-- | surf.c | 6 |
2 files changed, 8 insertions, 0 deletions
@@ -183,6 +183,8 @@ static Key keys[] = { { 0, GDK_KEY_y, clipboard, { .i = 0 } }, + { 0, GDK_KEY_q, quit, { 0 } }, + { MODKEY|GDK_SHIFT_MASK, GDK_KEY_p, print, { 0 } }, { MODKEY, GDK_KEY_t, showcert, { 0 } }, @@ -229,6 +229,7 @@ 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 sendext(Client *c, const Arg *a); +static void quit(Client *c, const Arg *a); /* Buttons */ static void clicknavigate(Client *c, const Arg *a, WebKitHitTestResult *h); @@ -1047,6 +1048,11 @@ destroyclient(Client *c) free(c); } +void quit(Client *c, const Arg *a) +{ + gtk_widget_destroy(c->win); +} + void cleanup(void) { |
