mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
CtrlCore: Fix issue with nested menubars on Wayland (#238)
* CtrlCore: Fix issue with nested menubars on Wayland. * Comment less invasive
This commit is contained in:
parent
916253ca4b
commit
2f513c64bc
1 changed files with 4 additions and 2 deletions
|
|
@ -64,8 +64,10 @@ void Ctrl::StartGrabPopup()
|
|||
Ctrl *w = activePopup[0];
|
||||
if(w && w->IsOpen()) {
|
||||
ReleaseWndCapture0();
|
||||
if(w->GrabMouse())
|
||||
// NOTE: On Wayland GrabMouse() is broken and shouldn't be used.
|
||||
if(IsWayland() || w->GrabMouse()) {
|
||||
grabpopup = w;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -119,4 +121,4 @@ void Ctrl::CaptureSync()
|
|||
|
||||
};
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue