diff options
Diffstat (limited to 'iup/srccontrols/matrix/iupmat_focus.c')
-rwxr-xr-x | iup/srccontrols/matrix/iupmat_focus.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/iup/srccontrols/matrix/iupmat_focus.c b/iup/srccontrols/matrix/iupmat_focus.c index 3c000f8..0cf680d 100755 --- a/iup/srccontrols/matrix/iupmat_focus.c +++ b/iup/srccontrols/matrix/iupmat_focus.c @@ -35,13 +35,11 @@ int iupMatrixFocus_CB(Ihandle* ih, int focus) if (!iupMatrixIsValid(ih, 1)) return IUP_DEFAULT; - if (iupStrEqualNoCase(IupGetGlobal("DRIVER"), "Motif")) + if (IupGetGlobal("MOTIFVERSION")) { - if (focus && iupAttribGet(ih, "_IUPMAT_DOUBLE_CLICK")) - { - iupAttribSetStr(ih, "_IUPMAT_DOUBLE_CLICK", NULL); + if (iupAttribGet(ih, "_IUPMAT_DROPDOWN") || /* from iMatrixEditDropDown_CB, in Motif */ + iupAttribGet(ih, "_IUPMAT_DOUBLECLICK")) /* from iMatrixMouseLeftPress, in Motif */ return IUP_DEFAULT; - } } ih->data->has_focus = focus; |