window: Move type_atom to window-x11

This commit is contained in:
Jasper St. Pierre
2014-03-18 21:15:49 -04:00
parent dfcefd3315
commit f05983be42
5 changed files with 25 additions and 41 deletions

View File

@ -95,9 +95,8 @@ struct _MetaWindow
MetaIconCache icon_cache;
Pixmap wm_hints_pixmap;
Pixmap wm_hints_mask;
MetaWindowType type;
Atom type_atom;
/* NOTE these five are not in UTF-8, we just treat them as random
* binary data

View File

@ -940,7 +940,6 @@ _meta_window_shared_new (MetaDisplay *display,
window->transient_parent_is_root_window = FALSE;
window->type = META_WINDOW_NORMAL;
window->type_atom = None;
window->struts = NULL;
@ -9417,23 +9416,6 @@ meta_window_get_window_type (MetaWindow *window)
return window->type;
}
/**
* meta_window_get_window_type_atom: (skip)
* @window: a #MetaWindow
*
* Gets the X atom from the _NET_WM_WINDOW_TYPE property used by the
* application to set the window type. (Note that this is constrained
* to be some value that Mutter recognizes - a completely unrecognized
* type atom will be returned as None.)
*
* Return value: the raw X atom for the window type, or None
*/
Atom
meta_window_get_window_type_atom (MetaWindow *window)
{
return window->type_atom;
}
/**
* meta_window_get_workspace:
* @window: a #MetaWindow