Skip to content

Commit b23ea2f

Browse files
authored
x11 skip events for window without owner (#131)
1 parent 857ff53 commit b23ea2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Engine/system/api/x11api.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ void X11Api::implProcessEvents(SystemApi::AppCallBack &cb) {
539539

540540
HWND hWnd = xev.xclient.window;
541541
auto it = impl->findWindow(hWnd.ptr());
542-
if(it==nullptr)
542+
if(it==nullptr || it->owner==nullptr)
543543
return;
544544
Tempest::Window& cb = *it->owner;
545545
switch( xev.type ) {

0 commit comments

Comments
 (0)