mirror of https://github.com/adamdruppe/arsd.git
unlock cursor asap
This commit is contained in:
parent
f297fbf813
commit
498a0b0756
16
minigui.d
16
minigui.d
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue