summaryrefslogtreecommitdiff
path: root/desktop/browser.c
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-05-06 15:36:03 +0100
committerMichael Drake <michael.drake@codethink.co.uk>2019-05-06 15:38:33 +0100
commitb38f7cc7187a257f5fb04864ad2f44c4466c1ddc (patch)
tree2982b515de2250e6526f52e4a539c68836fc628d /desktop/browser.c
parent6ad7b3e6080d7faf534e4a1865d77741b870b727 (diff)
downloadnetsurf-b38f7cc7187a257f5fb04864ad2f44c4466c1ddc.tar.gz
netsurf-b38f7cc7187a257f5fb04864ad2f44c4466c1ddc.tar.bz2
Browser window: Handle the content msg for getdims.
Diffstat (limited to 'desktop/browser.c')
-rw-r--r--desktop/browser.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/desktop/browser.c b/desktop/browser.c
index 9795f96a1..f18768b40 100644
--- a/desktop/browser.c
+++ b/desktop/browser.c
@@ -1638,6 +1638,18 @@ browser_window_callback(hlcache_handle *c,
}
break;
+ case CONTENT_MSG_GETDIMS:
+ {
+ int width;
+ int height;
+
+ browser_window_get_dimensions(bw, &width, &height, true);
+
+ *(event->data.getdims.viewport_width) = width;
+ *(event->data.getdims.viewport_height) = height;
+ break;
+ }
+
case CONTENT_MSG_SCROLL:
{
struct rect rect = {