WEdit shouldn't handle mouse events of overlapping buttonbar.

Signed-off-by: Mooffie <mooffie@gmail.com>
This commit is contained in:
Mooffie 2017-01-25 18:24:46 +02:00
parent 5ea5c5deb6
commit 0481b8e790

View File

@ -1071,6 +1071,16 @@ edit_mouse_callback (Widget * w, mouse_msg_t msg, mouse_event_t * event)
return;
}
/* If it's the last line on the screen, we abort the event to make the
* system channel it to the overlapping buttonbar instead. We have to do
* this because a WEdit has the WOP_TOP_SELECT flag, which makes it above
* the buttonbar in Z-order. */
if (msg == MSG_MOUSE_DOWN && (event->y + w->y == LINES - 1))
{
event->result.abort = TRUE;
return;
}
switch (msg)
{
case MSG_MOUSE_DOWN: