From 0f2398d1f622cce37925f52d978d92e6cce1c7a9 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Tue, 9 Mar 2021 11:24:11 -0500 Subject: making mouse movements only reported to widgets in raleigh if they request it, and making it continue while the mouse is outside the widget (but inside the window) --- src/user/raleigh/w/padding.cpp | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/user/raleigh/w/padding.cpp') diff --git a/src/user/raleigh/w/padding.cpp b/src/user/raleigh/w/padding.cpp index 21289d4..57ac011 100644 --- a/src/user/raleigh/w/padding.cpp +++ b/src/user/raleigh/w/padding.cpp @@ -38,12 +38,4 @@ namespace raleigh { void padding::notify_child_size_change(widget &child, coord old_size) { set_size(coord(inner.size.x + pad_by * 2, inner.size.y + pad_by * 2)); } - - void padding::on_mouse_move(coord window_coords) { - if ((window_coords.x >= inner.window_offset.x) && - (window_coords.y >= inner.window_offset.y) && - (window_coords.x < inner.window_offset.x + inner.size.x) && - (window_coords.y < inner.window_offset.y + inner.size.y)) - inner.on_mouse_move(window_coords); - } } \ No newline at end of file -- cgit v1.2.3