[regression] Window resize granularity is lost when restored after using Grid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Compiz |
Fix Released
|
Medium
|
Sami Jaktholm | ||
Compiz Grid Plugin |
Triaged
|
Medium
|
Unassigned | ||
Compiz Main Plugins |
Triaged
|
Medium
|
Unassigned | ||
compiz (Ubuntu) |
Fix Released
|
Medium
|
Sami Jaktholm | ||
compiz-plugins-main (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
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/
Video attached.
TESTCASE:
1. Open a Terminal.
2. Resize it. Verify that it only resizes in granular increments.
3. Drag the window to the left or right of the screen to trigger Grid.
4. Restore the window.
5. Resize it again. Notice the granular increments are gone. That is the bug.
Expected result:
5. Resize it again. Verify that it only resizes in granular increments.
I suspect this is the cause (in grid.cpp):
/* Be evil */
if (cw->sizeHints ().flags & PResizeInc)
{
}
and it seems the restore code to undo the above hack never gets called:
if (gw->isGridMaxi
{
Related branches
- Daniel van Vugt: Approve
- MC Return: Approve
- PS Jenkins bot: Pending (continuous-integration) requested
-
Diff: 203 lines (+65/-31)2 files modifiedplugins/grid/src/grid.cpp (+64/-30)
plugins/grid/src/grid.h (+1/-1)
affects: | compiz-grid-plugin → compiz-plugins-main |
Changed in compiz-grid-plugin: | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in compiz: | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in compiz: | |
milestone: | none → 0.9.9.0 |
status: | Triaged → In Progress |
assignee: | nobody → sampo555 (sampo555) |
Changed in compiz (Ubuntu): | |
status: | Fix Released → In Progress |
importance: | Undecided → Medium |
assignee: | nobody → sampo555 (sampo555) |
Changed in compiz: | |
milestone: | 0.9.9.0 → 0.9.9.2 |
milestone: | 0.9.9.2 → 0.9.9.0 |
Changed in compiz: | |
status: | In Progress → Fix Committed |
Changed in compiz: | |
status: | Fix Committed → Fix Released |
I think the sizeHints hacking (if that is the cause) needs to be removed. It is more correct to have a window whose width is a multiple of the terminal character size than to unconditionally semi-maximize to exactly 50% of the screen width.