Moved atomnames.h to includes so can be included from display.h.

meta_display_get_atom: allow common atom retrieval via enum (to avoid interning
identical atoms at different places).
This commit is contained in:
Tomas Frydrych
2008-08-18 15:10:13 +01:00
parent 5ebaa15333
commit f7f696c310
3 changed files with 22 additions and 5 deletions

View File

@@ -5183,3 +5183,10 @@ meta_display_get_shape_event_base (MetaDisplay *display)
}
#endif
#endif
Atom meta_display_get_atom (MetaDisplay *display, MetaAtom meta_atom)
{
Atom *atoms = & display->atom_WM_PROTOCOLS;
return atoms[meta_atom - 1];
}