440
440
UnityMTGrabHandlesWindow::glDraw(const GLMatrix& transform,
442
441
const GLWindowPaintAttrib& attrib,
446
442
const CompRegion& region,
449
445
/* Draw the window on the bottom, we will be drawing the
452
447
bool status = gWindow->glDraw(transform, attrib, region, mask);
454
bool status = gWindow->glDraw(transform, fragment, region, mask);
457
449
if (mHandles && mHandles->visible())
459
451
unsigned int allowedHandles = unity::MT::getLayoutForMask (window->state (), window->actions ());
464
454
for(unity::MT::TextureLayout layout : mHandles->layout (allowedHandles))
466
456
/* We want to set the geometry of the handle to the window