mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-11 02:21:45 +03:00
WEdit shouldn't handle mouse events of overlapping buttonbar.
Signed-off-by: Mooffie <mooffie@gmail.com>
This commit is contained in:
parent
5ea5c5deb6
commit
0481b8e790
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user