diff options
Diffstat (limited to 'beryl-plugins')
-rw-r--r-- | beryl-plugins/src/water.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/beryl-plugins/src/water.c b/beryl-plugins/src/water.c index 97fc8dc..faa5f6b 100644 --- a/beryl-plugins/src/water.c +++ b/beryl-plugins/src/water.c @@ -1025,18 +1025,11 @@ waterDrawWindowTexture(CompWindow * w, WATER_SCREEN(w->screen); Bool drawIt = TRUE; - if (ws->current.w && (w->id == ws->current.w->id)) - { - UNWRAP(ws, w->screen, drawWindowTexture); - (*w->screen->drawWindowTexture) (w, texture, fAttrib, mask); - WRAP(ws, w->screen, drawWindowTexture, waterDrawWindowTexture); - - return; - } - if (ws->current.w) { - if ((w->screen->x != ws->current.vpX) || (w->screen->y != ws->current.vpY)) + if (w->id == ws->current.w->id) + drawIt = FALSE; + else if ((w->screen->x != ws->current.vpX) || (w->screen->y != ws->current.vpY)) drawIt = FALSE; } |