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/multicontainer.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/multicontainer.cpp')
-rw-r--r-- | src/user/raleigh/w/multicontainer.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/user/raleigh/w/multicontainer.cpp b/src/user/raleigh/w/multicontainer.cpp index 3021deb..edc60aa 100644 --- a/src/user/raleigh/w/multicontainer.cpp +++ b/src/user/raleigh/w/multicontainer.cpp @@ -39,15 +39,4 @@ namespace raleigh { set_size(determine_size()); set_child_offsets(); } - - void multicontainer::on_mouse_move(coord window_coords) { - for (dllist<widget &>::node *n = widgets.first; n; n = n->next) - if ((window_coords.x >= n->d.window_offset.x) && - (window_coords.y >= n->d.window_offset.y) && - (window_coords.x < n->d.window_offset.x + n->d.size.x) && - (window_coords.y < n->d.window_offset.y + n->d.size.y)) { - n->d.on_mouse_move(window_coords); - return; - } - } }
\ No newline at end of file |