summaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorDaniel Carl <danielcarl@gmx.de>2017-05-12 00:08:45 +0200
committerDaniel Carl <danielcarl@gmx.de>2017-05-12 00:24:08 +0200
commit70b172403a3d97b25f039db658a0b38f495233a2 (patch)
tree057781194f96ceb35d877900f682e7c6d4cc6c2c /src/main.h
parentc5412c9756d7ff09e0da728e2794cd0cc412383e (diff)
Fixed wrong client to webpage relation #349.
In case a related webview is created. The relation between webextensions web page and the client in the ui process where mismatched. In fact the relation was correct, but when a dbus call was fired from ui to webextension, the webextension used the last created web page to run javascript in or to focus input fields. This patch adds the page_id of the web page to the dbus calls that target a specific web page. So that th webextension can get the right page by this id to use to answer the call. Also the communication from webextension to ui lagged this essential information. So that a click to a editable filed in a related webview all related instances into input mode switched.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 38f8808..3b7a31e 100644
--- a/src/main.h
+++ b/src/main.h
@@ -271,6 +271,7 @@ void vb_echo(Client *c, MessageType type, gboolean hide, const char *error, ...)
void vb_echo_force(Client *c, MessageType type, gboolean hide, const char *error, ...);
void vb_enter(Client *c, char id);
void vb_enter_prompt(Client *c, char id, const char *prompt, gboolean print_prompt);
+Client *vb_get_client_for_page_id(guint64 pageid);
char *vb_input_get_text(Client *c);
void vb_input_set_text(Client *c, const char *text);
void vb_input_update_style(Client *c);