diff options
author | Havoc Pennington <hp@pobox.com> | 2002-01-19 03:50:03 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2002-01-19 03:50:03 +0000 |
commit | 19d2e8c7e1df6fcf12e5e5dcfe36430627eb8cc2 (patch) | |
tree | 171f1da8bc2407db50d53475f95241ad0d932021 /src/core.c | |
parent | 3194faaa9cbe39f37e664470c40054d6621b2fd0 (diff) | |
download | metacity-19d2e8c7e1df6fcf12e5e5dcfe36430627eb8cc2.tar.gz |
give priority to keeping NW corner onscreen rather than SE, if we need to
2002-01-18 Havoc Pennington <hp@pobox.com>
* src/window.c (constrain_position): give priority to keeping NW
corner onscreen rather than SE, if we need to shift the window
to fit inside constraints
* src/frames.c (meta_frames_get_geometry): don't depend on the
current window size
* src/theme.c: move geometry stuff in here, to be calculated as
part of the theme
* src/core.c (meta_core_get_client_size): new function to replace
meta_core_get_frame_size() so we don't have weird cycles
in the geometry calculation
Diffstat (limited to 'src/core.c')
-rw-r--r-- | src/core.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -24,10 +24,10 @@ #include "workspace.h" void -meta_core_get_frame_size (Display *xdisplay, - Window frame_xwindow, - int *width, - int *height) +meta_core_get_client_size (Display *xdisplay, + Window frame_xwindow, + int *width, + int *height) { MetaDisplay *display; MetaWindow *window; @@ -39,9 +39,9 @@ meta_core_get_frame_size (Display *xdisplay, meta_bug ("No such frame window 0x%lx!\n", frame_xwindow); if (width) - *width = window->frame->rect.width; + *width = window->rect.width; if (height) - *height = window->frame->rect.height; + *height = window->rect.height; } MetaFrameFlags |