Comment 59 for bug 198951

Revision history for this message
In , Dominik (dominik-redhat-bugs) wrote :

I just applied the patch mentioned in #6 and recompiled gnome-desktop, not it
WFM. No idea how to make patches, this is my first miserable try ...

(/home/ds)$ diff -n rpmbuild/SOURCES/add-randr-12.patch
rpmbuild/SOURCES/add-randr-12.patch.new
--- rpmbuild/SOURCES/add-randr-12.patch 2008-03-02 22:18:50.000000000 +0000
+++ rpmbuild/SOURCES/add-randr-12.patch.new 2008-03-20 02:23:33.000000000 +0000
@@ -2535,10 +2535,10 @@
 + a = g_ptr_array_new ();
 + for (i = 0; i < info->nclone; ++i)
 + {
-+ RWOutput *output = rw_output_by_id (output->info, info->clones[i]);
++ RWOutput *rwoutput = rw_output_by_id (output->info, info->clones[i]);
 +
-+ if (output)
-+ g_ptr_array_add (a, output);
++ if (rwoutput)
++ g_ptr_array_add (a, rwoutput);
 + }
 + g_ptr_array_add (a, NULL);
 + output->clones = (RWOutput **)g_ptr_array_free (a, FALSE);