lol ketmar bug

This commit is contained in:
Adam D. Ruppe 2016-06-09 10:40:26 -04:00
parent 3a1ebbcf6d
commit 4ad2206942
1 changed files with 2 additions and 1 deletions

View File

@ -5256,12 +5256,13 @@ version(X11) {
glViewport(0, 0, event.width, event.height); glViewport(0, 0, event.width, event.height);
} }
if(win.windowResized !is null) if(win.windowResized !is null) {
XUnlockDisplay(display); XUnlockDisplay(display);
scope(exit) XLockDisplay(display); scope(exit) XLockDisplay(display);
win.windowResized(event.width, event.height); win.windowResized(event.width, event.height);
} }
} }
}
break; break;
case EventType.Expose: case EventType.Expose:
if(auto win = e.xexpose.window in SimpleWindow.nativeMapping) { if(auto win = e.xexpose.window in SimpleWindow.nativeMapping) {