Exposed MetaWindowType so it can be used by compositor backends.

meta_window_get_type:
meta_window_get_type_atom:
Accessors for window type/type atom.
This commit is contained in:
Tomas Frydrych 2008-08-18 15:42:38 +01:00
parent f7f696c310
commit e6e6aecb93
3 changed files with 27 additions and 13 deletions

View File

@ -42,19 +42,6 @@ typedef struct _MetaWindowQueue MetaWindowQueue;
typedef gboolean (*MetaWindowForeachFunc) (MetaWindow *window,
void *data);
typedef enum
{
META_WINDOW_NORMAL,
META_WINDOW_DESKTOP,
META_WINDOW_DOCK,
META_WINDOW_DIALOG,
META_WINDOW_MODAL_DIALOG,
META_WINDOW_TOOLBAR,
META_WINDOW_MENU,
META_WINDOW_UTILITY,
META_WINDOW_SPLASHSCREEN
} MetaWindowType;
typedef enum
{
META_MAXIMIZE_HORIZONTAL = 1 << 0,

View File

@ -8156,3 +8156,15 @@ meta_window_get_xwindow (MetaWindow *window)
{
return window->xwindow;
}
MetaWindowType
meta_window_get_type (MetaWindow *window)
{
return window->type;
}
Atom
meta_window_get_type_atom (MetaWindow *window)
{
return window->type_atom;
}

View File

@ -28,6 +28,19 @@
#include "boxes.h"
#include "types.h"
typedef enum
{
META_WINDOW_NORMAL,
META_WINDOW_DESKTOP,
META_WINDOW_DOCK,
META_WINDOW_DIALOG,
META_WINDOW_MODAL_DIALOG,
META_WINDOW_TOOLBAR,
META_WINDOW_MENU,
META_WINDOW_UTILITY,
META_WINDOW_SPLASHSCREEN,
} MetaWindowType;
MetaFrame *meta_window_get_frame (MetaWindow *window);
gboolean meta_window_has_focus (MetaWindow *window);
gboolean meta_window_is_shaded (MetaWindow *window);
@ -35,5 +48,7 @@ MetaRectangle *meta_window_get_rect (MetaWindow *window);
MetaScreen *meta_window_get_screen (MetaWindow *window);
MetaDisplay *meta_window_get_display (MetaWindow *window);
Window meta_window_get_xwindow (MetaWindow *window);
MetaWindowType meta_window_get_type (MetaWindow *window);
Atom meta_window_get_type_atom (MetaWindow *window);
#endif