mirror of
https://github.com/brl/mutter.git
synced 2025-07-24 10:28:02 +00:00
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
This commit is contained in:

committed by
Havoc Pennington

parent
3194faaa9c
commit
19d2e8c7e1
@@ -25,6 +25,7 @@
|
||||
#include <gtk/gtk.h>
|
||||
#include <gdk/gdkx.h>
|
||||
#include "common.h"
|
||||
#include "theme.h"
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -61,7 +62,6 @@ typedef struct _MetaFrames MetaFrames;
|
||||
typedef struct _MetaFramesClass MetaFramesClass;
|
||||
|
||||
typedef struct _MetaUIFrame MetaUIFrame;
|
||||
typedef struct _MetaFrameProperties MetaFrameProperties;
|
||||
|
||||
struct _MetaUIFrame
|
||||
{
|
||||
@@ -76,7 +76,7 @@ struct _MetaFrames
|
||||
GtkWindow parent_instance;
|
||||
|
||||
/* If we did a widget per frame, we wouldn't want to cache this. */
|
||||
MetaFrameProperties *props;
|
||||
MetaFrameLayout *layout;
|
||||
|
||||
int text_height;
|
||||
|
||||
|
Reference in New Issue
Block a user