Patch from John Paul Wallington to fix #163420.
2005-01-23 Elijah Newren <newren@gmail.com> Patch from John Paul Wallington to fix #163420. * src/window.c: (check_maximize_to_work_area): fix vertical maximization for second screen
This commit is contained in:
parent
6630963a1d
commit
814cc4b698
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
2005-01-23 Elijah Newren <newren@gmail.com>
|
||||
|
||||
Patch from John Paul Wallington to fix #163420.
|
||||
|
||||
* src/window.c: (check_maximize_to_work_area): fix vertical
|
||||
maximization for second screen
|
||||
|
||||
2005-01-21 Elijah Newren <newren@gmail.com>
|
||||
|
||||
* rationales.txt: Add a tracker bug for modal dialog issues
|
||||
|
|
|
@ -2895,9 +2895,9 @@ check_maximize_to_work_area (MetaWindow *window,
|
|||
|
||||
if ( rect.x >= work_area->x &&
|
||||
rect.y >= work_area->y &&
|
||||
(((work_area->width - work_area->x) - rect.width) <
|
||||
(((work_area->width + work_area->x) - (rect.width + rect.x)) <
|
||||
window->size_hints.width_inc) &&
|
||||
(((work_area->height - work_area->y) - rect.height) <
|
||||
(((work_area->height + work_area->y) - (rect.height + rect.y)) <
|
||||
window->size_hints.height_inc) )
|
||||
meta_window_maximize (window);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue