metacity r3677 - in trunk: . src/core
- From: jensg svn gnome org
- To: svn-commits-list gnome org
- Subject: metacity r3677 - in trunk: . src/core
- Date: Mon, 7 Apr 2008 21:50:37 +0100 (BST)
Author: jensg
Date: Mon Apr 7 21:50:37 2008
New Revision: 3677
URL: http://svn.gnome.org/viewvc/metacity?rev=3677&view=rev
Log:
2008-04-07 Jens Granseuer <jensgr gmx net>
* src/core/session.c: (save_state),
(warn_about_lame_clients_and_finish_interact):
reorder declarations so we don't break C89 compilers.
Modified:
trunk/ChangeLog
trunk/src/core/session.c
Modified: trunk/src/core/session.c
==============================================================================
--- trunk/src/core/session.c (original)
+++ trunk/src/core/session.c Mon Apr 7 21:50:37 2008
@@ -807,6 +807,9 @@
char *metacity_dir;
char *session_dir;
FILE *outfile;
+ GSList *windows;
+ GSList *tmp;
+ int stack_position;
g_assert (client_id);
@@ -871,11 +874,10 @@
fprintf (outfile, "<metacity_session id=\"%s\">\n",
client_id);
-
- GSList *windows = meta_display_list_windows (meta_get_display ());
- GSList *tmp;
- int stack_position = 0;
-
+
+ windows = meta_display_list_windows (meta_get_display ());
+ stack_position = 0;
+
windows = g_slist_sort (windows, meta_display_stack_cmp);
tmp = windows;
stack_position = 0;
@@ -1782,6 +1784,7 @@
warn_about_lame_clients_and_finish_interact (gboolean shutdown)
{
GSList *lame;
+ GSList *windows;
char **argv;
int i;
GSList *tmp;
@@ -1795,7 +1798,7 @@
char timestampbuf[32];
lame = NULL;
- GSList *windows = meta_display_list_windows (meta_get_display ());
+ windows = meta_display_list_windows (meta_get_display ());
tmp = windows;
while (tmp != NULL)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]