don't apply offscreen height difference. This would get the window under

2003-01-06  Arvind Samptur <arvind.samptur@wipro.com>
        * src/window.c: (constrain_position) don't apply
        offscreen height difference. This would get the
        window under the panel on a resize or a move.
        Fixes #102418
This commit is contained in:
Arvind Samptur 2003-01-06 04:40:11 +00:00 committed by Arvind Samptur
parent 036747fba5
commit e2155c8fee
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-01-06 Arvind Samptur <arvind.samptur@wipro.com>
* src/window.c: (constrain_position) don't apply
offscreen height difference. This would get the
window under the panel on a resize or a move.
Fixes #102418
2003-01-05 Havoc Pennington <hp@pobox.com> 2003-01-05 Havoc Pennington <hp@pobox.com>
* src/screen.c (meta_screen_calc_workspace_layout): invert * src/screen.c (meta_screen_calc_workspace_layout): invert

View File

@ -5873,8 +5873,6 @@ constrain_position (MetaWindow *window,
/* Now change NW limit to reflect amount offscreen in SE direction */ /* Now change NW limit to reflect amount offscreen in SE direction */
if (offscreen_w > 0) if (offscreen_w > 0)
nw_x -= offscreen_w; nw_x -= offscreen_w;
if (offscreen_h > 0)
nw_y -= offscreen_h;
/* Limit movement off the right/bottom. /* Limit movement off the right/bottom.
* Remember, we're constraining StaticGravity position. * Remember, we're constraining StaticGravity position.