mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-10-06 00:30:10 -06:00
CtrlCore: Improved endsession behaviour in Win32
git-svn-id: svn://ultimatepp.org/upp/trunk@3706 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
7e763026e1
commit
c318ff462f
11 changed files with 89 additions and 45 deletions
|
|
@ -400,6 +400,7 @@ void Ctrl::EventLoop0(Ctrl *ctrl)
|
|||
ASSERT(IsMainThread());
|
||||
ASSERT(LoopLevel == 0 || ctrl);
|
||||
LoopLevel++;
|
||||
int64 loopno = ++EventLoopNo;
|
||||
LLOG("Entering event loop at level " << LoopLevel << LOG_BEGIN);
|
||||
Ctrl *ploop;
|
||||
if(ctrl) {
|
||||
|
|
@ -408,7 +409,7 @@ void Ctrl::EventLoop0(Ctrl *ctrl)
|
|||
ctrl->inloop = true;
|
||||
}
|
||||
|
||||
while(ctrl ? ctrl->InLoop() && ctrl->IsOpen() : GetTopCtrls().GetCount()) {
|
||||
while(loopno > EndSessionLoopNo && (ctrl ? ctrl->InLoop() && ctrl->IsOpen() : GetTopCtrls().GetCount())) {
|
||||
XEvent event;
|
||||
fd_set fdset;
|
||||
FD_ZERO(&fdset);
|
||||
|
|
|
|||
Loading…
Reference in a new issue