summaryrefslogtreecommitdiff
path: root/src/display.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/display.cpp')
-rw-r--r--src/display.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/display.cpp b/src/display.cpp
index 18188eb..312a642 100644
--- a/src/display.cpp
+++ b/src/display.cpp
@@ -1139,7 +1139,6 @@ PrivateDisplay::setAudibleBell (bool audible)
bool
PrivateDisplay::handlePingTimeout ()
{
- CompWindow *w;
XEvent ev;
int ping = lastPing + 1;
@@ -1155,7 +1154,7 @@ PrivateDisplay::handlePingTimeout ()
foreach (CompScreen *s, screens)
{
- for (w = s->windows (); w; w = w->next)
+ foreach (CompWindow *w, s->windows ())
{
if (w->handlePingTimeout (lastPing))
{