Skip to content

Commit

Permalink
fix: make sure the close the context menu when the window loses focus.
Browse files Browse the repository at this point in the history
  • Loading branch information
s4my committed Nov 2, 2023
1 parent f2d3204 commit 65deeb7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions luigi2.h
Original file line number Diff line number Diff line change
Expand Up @@ -5750,6 +5750,9 @@ bool _UIProcessEvent(XEvent *event) {
if (!window) return false;
window->ctrl = window->shift = window->alt = false;
UIElementMessage(&window->e, UI_MSG_WINDOW_ACTIVATE, 0, 0);
} else if (event->type == FocusOut || event->type == ResizeRequest) {
_UIMenusClose();
_UIUpdate();
} else if (event->type == ClientMessage && event->xclient.message_type == ui.dndEnterID) {
UIWindow *window = _UIFindWindow(event->xclient.window);
if (!window) return false;
Expand Down

0 comments on commit 65deeb7

Please sign in to comment.