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:
parent
f7f696c310
commit
e6e6aecb93
@ -42,19 +42,6 @@ typedef struct _MetaWindowQueue MetaWindowQueue;
|
|||||||
typedef gboolean (*MetaWindowForeachFunc) (MetaWindow *window,
|
typedef gboolean (*MetaWindowForeachFunc) (MetaWindow *window,
|
||||||
void *data);
|
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
|
typedef enum
|
||||||
{
|
{
|
||||||
META_MAXIMIZE_HORIZONTAL = 1 << 0,
|
META_MAXIMIZE_HORIZONTAL = 1 << 0,
|
||||||
|
@ -8156,3 +8156,15 @@ meta_window_get_xwindow (MetaWindow *window)
|
|||||||
{
|
{
|
||||||
return window->xwindow;
|
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;
|
||||||
|
}
|
||||||
|
@ -28,6 +28,19 @@
|
|||||||
#include "boxes.h"
|
#include "boxes.h"
|
||||||
#include "types.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);
|
MetaFrame *meta_window_get_frame (MetaWindow *window);
|
||||||
gboolean meta_window_has_focus (MetaWindow *window);
|
gboolean meta_window_has_focus (MetaWindow *window);
|
||||||
gboolean meta_window_is_shaded (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);
|
MetaScreen *meta_window_get_screen (MetaWindow *window);
|
||||||
MetaDisplay *meta_window_get_display (MetaWindow *window);
|
MetaDisplay *meta_window_get_display (MetaWindow *window);
|
||||||
Window meta_window_get_xwindow (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
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user