]> git.mdlowis.com Git - proto/labwc.git/commit
src/cursor.c: Fix branch condition for out-of-view selecting/dragging
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Tue, 24 May 2022 11:02:51 +0000 (13:02 +0200)
committerJohan Malm <johanmalm@users.noreply.github.com>
Tue, 24 May 2022 16:35:32 +0000 (17:35 +0100)
commit6dd290afc9fd009a6631df4a057f385d1c01a403
tree09f5fdd9762aece7cc6596eac000809f65075520
parentfbcdf38b52bb5a9635962e346c4f82e8c932ec89
src/cursor.c: Fix branch condition for out-of-view selecting/dragging

Instead of using the stored view for comparison use the actual surface.

Before this patch, there were situations where the branch intended for
out-of-window text selection / scrollbar dragging was used even though
the cursor never left the surface.

Partly fixes #340
include/labwc.h
src/cursor.c
src/view.c