static bool waterTitleWave (CompAction *action, CompAction::State state, CompOption::Vector &options) { CompWindow *w; int xid; WATER_SCREEN (screen); xid = CompOption::getIntOptionNamed (options, "window", screen->activeWindow ()); w = screen->findWindow (xid); if (w) { const CompWindow::Geometry &g = w->geometry (); XPoint p[2]; p[0].x = g.x () - w->border ().left; p[0].y = g.y () - w->border ().top / 2; p[1].x = g.x () + g.width () + w->border ().right; p[1].y = p[0].y; ws->waterVertices (GL_LINES, p, 2, 0.15f); ws->cScreen->damageScreen (); } return false; }