Refactoring

* Move code around
* Remove unneeded forward declaration
* Rename win->damaged to win->ever_damaged, to be less confusing
* Expose debug functions even when DEBUG is not enabled. Compiler
  would remove the dead code for us anyway.
* Some code cleanup
This commit is contained in:
Yuxuan Shui
2018-09-09 02:29:45 +01:00
parent 2adfdfa897
commit 72231098d1
5 changed files with 116 additions and 178 deletions

View File

@ -754,7 +754,7 @@ bool add_win(session_t *ps, Window id, Window prev) {
#endif
.pictfmt = NULL,
.mode = WMODE_TRANS,
.damaged = false,
.ever_damaged = false,
.damage = None,
.pixmap_damaged = false,
.paint = PAINT_INIT,