summaryrefslogtreecommitdiff
path: root/frontends/windows/window.c
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-02-19 11:39:47 +0000
committerVincent Sanders <vince@kyllikki.org>2017-02-19 11:39:47 +0000
commitae45b18b459fa4f490501a93459e49f1f1038073 (patch)
treef0d8a3356a74c0a448f6d8ad5f4e4b22fc3c384c /frontends/windows/window.c
parent67b22a811128f5a0635430151a73442d1f100735 (diff)
parent0f69965805dda51cc7b6ea8404226d5f75a3b533 (diff)
downloadnetsurf-ae45b18b459fa4f490501a93459e49f1f1038073.tar.gz
netsurf-ae45b18b459fa4f490501a93459e49f1f1038073.tar.bz2
Merge branch 'vince/localhist-corewin'
Diffstat (limited to 'frontends/windows/window.c')
-rw-r--r--frontends/windows/window.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/frontends/windows/window.c b/frontends/windows/window.c
index 74b84e320..b4cafaab3 100644
--- a/frontends/windows/window.c
+++ b/frontends/windows/window.c
@@ -809,11 +809,12 @@ static void nsws_update_edit(struct gui_window *w)
*
* \param gw win32 frontends graphical window.
* \param hwnd The win32 window handle
- * \param int x The x coordinate of the event.
+ * \param x The x coordinate of the event.
* \param y the y coordinate of the event.
+ * \return true if menu displayed else false
*/
static bool
-nsws_ctx_menu(struct gui_window *w, HWND hwnd, int x, int y)
+nsws_ctx_menu(struct gui_window *gw, HWND hwnd, int x, int y)
{
RECT rc; /* client area of window */
POINT pt = { x, y }; /* location of mouse click */
@@ -828,7 +829,7 @@ nsws_ctx_menu(struct gui_window *w, HWND hwnd, int x, int y)
if (PtInRect(&rc, pt)) {
ClientToScreen(hwnd, &pt);
nsws_update_edit(w);
- TrackPopupMenu(GetSubMenu(w->rclick, 0),
+ TrackPopupMenu(GetSubMenu(gw->rclick, 0),
TPM_CENTERALIGN | TPM_TOPALIGN,
x,
y,