mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
(easy_mouse_translator): minor optimization.
This commit is contained in:
parent
03daa62e19
commit
cfd2c35241
@ -86,16 +86,13 @@ easy_mouse_translator (Gpm_Event * event, void *data)
|
||||
gboolean run_click = FALSE;
|
||||
mouse_msg_t msg = MSG_MOUSE_NONE;
|
||||
|
||||
in_widget = mouse_global_in_widget (event, w);
|
||||
|
||||
/*
|
||||
* Very special widgets may want to control area outside their bounds.
|
||||
* For such widgets you will have to turn on the 'forced_capture' flag.
|
||||
* You'll also need, in your mouse handler, to inform the system of
|
||||
* events you want to pass on by setting 'event->result.abort' to TRUE.
|
||||
*/
|
||||
if (w->Mouse.forced_capture)
|
||||
in_widget = TRUE;
|
||||
in_widget = w->Mouse.forced_capture || mouse_global_in_widget (event, w);
|
||||
|
||||
if ((event->type & GPM_DOWN) != 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user