diff --git a/simpledisplay.d b/simpledisplay.d index ec1b986..e156d04 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -5256,10 +5256,11 @@ version(X11) { glViewport(0, 0, event.width, event.height); } - if(win.windowResized !is null) + if(win.windowResized !is null) { XUnlockDisplay(display); scope(exit) XLockDisplay(display); win.windowResized(event.width, event.height); + } } } break;