Comment 0 for bug 925867

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Window resize granularity is lost after being semi-maximized by the Grid plugin

When you resize a (new) terminal window, it only resizes in increments of the character size. This is correct behaviour. However after the Grid plugin has touched a window, it loses its resize increments/granularity.

Video attached.

I suspect this is the cause (in grid.cpp):
                /* Be evil */
                if (cw->sizeHints ().flags & PResizeInc)
                {
                    gw->sizeHintsFlags |= PResizeInc;
                    gw->window->sizeHints ().flags &= ~(PResizeInc);
                }
and it seems the restore code to undo the above hack never gets called:
    if (gw->isGridMaximized & !(cw->state () & MAXIMIZE_STATE))
    {
        gw->window->sizeHints ().flags |= gw->sizeHintsFlags;
        gw->isGridMaximized = false;