Browse Source

One more XSetInputFocus exception fix

Signed-off-by: falkTX <falktx@falktx.com>
tags/v2.4.2
falkTX 3 years ago
parent
commit
74a1ae82c9
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 7 additions and 1 deletions
  1. +7
    -1
      source/utils/CarlaPluginUI.cpp

+ 7
- 1
source/utils/CarlaPluginUI.cpp View File

@@ -341,7 +341,13 @@ public:
if (fChildWindow == 0) if (fChildWindow == 0)
fChildWindow = getChildWindow(); fChildWindow = getChildWindow();
if (fChildWindow != 0) if (fChildWindow != 0)
XSetInputFocus(fDisplay, fChildWindow, RevertToPointerRoot, CurrentTime);
{
XWindowAttributes wa;
carla_zeroStruct(wa);

if (XGetWindowAttributes(fDisplay, fChildWindow, &wa) && wa.map_state == IsViewable)
XSetInputFocus(fDisplay, fChildWindow, RevertToPointerRoot, CurrentTime);
}
break; break;
} }




Loading…
Cancel
Save