diff options
author | Benji Dial <benji6283@gmail.com> | 2021-03-09 11:24:11 -0500 |
---|---|---|
committer | Benji Dial <benji6283@gmail.com> | 2021-03-09 11:24:11 -0500 |
commit | 0f2398d1f622cce37925f52d978d92e6cce1c7a9 (patch) | |
tree | 68435086d6375a6a5dab2106b1ecfdabb6340fa8 /src/user/raleigh/w/padding.cpp | |
parent | fd4557c4adddf710979a42e9f9d470bc8b3f77bd (diff) | |
download | portland-os-0f2398d1f622cce37925f52d978d92e6cce1c7a9.tar.gz |
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)
Diffstat (limited to 'src/user/raleigh/w/padding.cpp')
-rw-r--r-- | src/user/raleigh/w/padding.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
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 |