unlock cursor asap

This commit is contained in:
Adam D. Ruppe 2021-06-15 07:23:04 -04:00
parent f297fbf813
commit 498a0b0756
1 changed files with 6 additions and 10 deletions

View File

@ -7596,16 +7596,12 @@ class Menu : Window {
dropDown.show(); dropDown.show();
bool firstClick = true; clickListener = this.addEventListener((scope ClickEvent ev) {
unpopup();
clickListener = this.addEventListener(EventType.click, (Event ev) { // need to unlock asap just in case other user handlers block...
if(firstClick) { static if(UsingSimpledisplayX11)
firstClick = false; flushGui();
//return; }, true /* again for asap action */);
}
//if(ev.clientX < 0 || ev.clientY < 0 || ev.clientX > width || ev.clientY > height)
unpopup();
});
} }
EventListener clickListener; EventListener clickListener;