MetaDisplay becomes a singleton. The static variable which holds this
2008-03-25 Thomas Thurman <tthurman@gnome.org> * src/core/display.c (meta_display_queue_retheme_all_windows, meta_set_syncing, meta_display_set_cursor_theme, disable_compositor, meta_display_for_x_display, meta_display_open, meta_display_close, meta_display_ungrab): MetaDisplay becomes a singleton. The static variable which holds this singleton is renamed "the_display" so as not to mask the this parameter in the methods. * src/core/main.c (main): * src/core/session.c (warn_about_lame_clients_and_finish_inte, save_state, io_from_warning_dialog): * src/core/core.c (meta_core_increment_event_serial): * src/core/delete.c (release_window_with_fd, search_and_destroy_window): sympathy changes for this, and consequent simplification. Closes #499301. svn path=/trunk/; revision=3663
This commit is contained in:

committed by
Thomas James Alexander Thurman

parent
941a9a9a7f
commit
1e325bcbdf
@@ -478,24 +478,8 @@ main (int argc, char **argv)
|
||||
|
||||
g_main_loop_run (meta_main_loop);
|
||||
|
||||
{
|
||||
GSList *displays;
|
||||
GSList *tmp;
|
||||
|
||||
/* we need a copy since closing the display removes it
|
||||
* from the list
|
||||
*/
|
||||
displays = g_slist_copy (meta_displays_list ());
|
||||
tmp = displays;
|
||||
while (tmp != NULL)
|
||||
{
|
||||
guint32 timestamp;
|
||||
timestamp = CurrentTime; /* I doubt correct timestamps matter here */
|
||||
meta_display_close (tmp->data, timestamp);
|
||||
tmp = tmp->next;
|
||||
}
|
||||
g_slist_free (displays);
|
||||
}
|
||||
meta_display_close (meta_get_display (),
|
||||
CurrentTime); /* I doubt correct timestamps matter here */
|
||||
|
||||
meta_session_shutdown ();
|
||||
|
||||
|
Reference in New Issue
Block a user