Code Review
/
staging
/
windowmanager.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
binding: make the pending_events functionality nicer[tm]
[staging/windowmanager.git]
/
src
/
app.cpp
diff --git
a/src/app.cpp
b/src/app.cpp
index
7b2b69c
..
9b8f1fd
100644
(file)
--- a/
src/app.cpp
+++ b/
src/app.cpp
@@
-159,15
+159,12
@@
int App::dispatch_events() {
}
this->display->flush();
}
this->display->flush();
- // execute pending tasks, that is layout changes etc.
- // this->execute_pending();
-
return 0;
}
int App::dispatch_pending_events() {
return 0;
}
int App::dispatch_pending_events() {
- if (this->p
ending_events.load(std::memory_order_consume
)) {
-
this->pending_events.store(false, std::memory_order_relea
se);
+ if (this->p
op_pending_events(
)) {
+
assert(this->pending_events == fal
se);
this->display->dispatch_pending();
return 0;
}
this->display->dispatch_pending();
return 0;
}