mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
fix positioning in fullscreen mode, patch from Gustavo Girldez
2002-05-21 Havoc Pennington <hp@redhat.com> * src/window.c (constrain_position): fix positioning in fullscreen mode, patch from Gustavo Girldez
This commit is contained in:
parent
b29a41fa43
commit
2567ee81b8
@ -1,3 +1,8 @@
|
||||
2002-05-21 Havoc Pennington <hp@redhat.com>
|
||||
|
||||
* src/window.c (constrain_position): fix positioning in fullscreen
|
||||
mode, patch from Gustavo Giráldez
|
||||
|
||||
2002-05-20 Alessio Frusciante <algol@firenze.linux.it>
|
||||
|
||||
* configure.in: Added Italian to ALL_LINGUAS.
|
||||
|
@ -5043,11 +5043,9 @@ constrain_position (MetaWindow *window,
|
||||
* prevents fullscreen, center the window within
|
||||
* the screen area.
|
||||
*/
|
||||
x += (window->screen->width - window->rect.width -
|
||||
(window->frame ? (fgeom->left_width + fgeom->right_width) : 0)) / 2;
|
||||
x += (window->screen->width - window->rect.width) / 2;
|
||||
|
||||
y += (window->screen->height - window->rect.height -
|
||||
(window->frame ? (fgeom->top_height + fgeom->bottom_height) : 0)) / 2;
|
||||
y += (window->screen->height - window->rect.height) / 2;
|
||||
}
|
||||
else if (window->maximized)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user