diff options
Diffstat (limited to 'src/window_gui.h')
-rw-r--r-- | src/window_gui.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h index 1dff3b971..81d3f5062 100644 --- a/src/window_gui.h +++ b/src/window_gui.h @@ -541,7 +541,8 @@ extern Window *_z_windows[]; extern Window **_last_z_window; /** Iterate over all windows */ -#define FOR_ALL_WINDOWS(wz) for (wz = _z_windows; wz != _last_z_window; wz++) +#define FOR_ALL_WINDOWS_FROM_BACK(w) for (Window **wz = _z_windows; wz != _last_z_window && (w = *wz) != NULL; wz++) +#define FOR_ALL_WINDOWS_FROM_FRONT(w) for (Window **wz = _last_z_window; wz != _z_windows && (w = *--wz) != NULL;) /** * Disable scrolling of the main viewport when an input-window is active. |