aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/win.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2020-03-17 18:43:41 +0100
committerDavid Robillard <d@drobilla.net>2020-03-17 18:58:42 +0100
commit8ecb682579e5a8236cddf151ec200f5ea07d3292 (patch)
tree51d8bf5ba75384d4365071f42559b5ad626107c0 /pugl/detail/win.c
parent163748d173af0ebeeec80b1e414169e72d23bb24 (diff)
downloadpugl-8ecb682579e5a8236cddf151ec200f5ea07d3292.tar.gz
pugl-8ecb682579e5a8236cddf151ec200f5ea07d3292.tar.bz2
pugl-8ecb682579e5a8236cddf151ec200f5ea07d3292.zip
Use clearer names for pointer events
These old "notify" names are a smell from X11 which is a bit strange and inconsistent here, since nearly everything is a "notification" of sorts. I think the new names here are much more clear since they are consistent with the keyboard focus events.
Diffstat (limited to 'pugl/detail/win.c')
-rw-r--r--pugl/detail/win.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pugl/detail/win.c b/pugl/detail/win.c
index 7678607..4606d60 100644
--- a/pugl/detail/win.c
+++ b/pugl/detail/win.c
@@ -617,12 +617,12 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
tme.hwndTrack = view->impl->hwnd;
TrackMouseEvent(&tme);
- handleCrossing(view, PUGL_ENTER_NOTIFY, pt);
+ handleCrossing(view, PUGL_POINTER_IN, pt);
view->impl->mouseTracked = true;
}
ClientToScreen(view->impl->hwnd, &pt);
- event.motion.type = PUGL_MOTION_NOTIFY;
+ event.motion.type = PUGL_MOTION;
event.motion.time = GetMessageTime() / 1e3;
event.motion.x = GET_X_LPARAM(lParam);
event.motion.y = GET_Y_LPARAM(lParam);
@@ -634,7 +634,7 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
case WM_MOUSELEAVE:
GetCursorPos(&pt);
ScreenToClient(view->impl->hwnd, &pt);
- handleCrossing(view, PUGL_LEAVE_NOTIFY, pt);
+ handleCrossing(view, PUGL_POINTER_OUT, pt);
view->impl->mouseTracked = false;
break;
case WM_LBUTTONDOWN: