Comment 62 for bug 742544

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I have uploaded a temporary fix for Ubuntu 11.10 to ppa:vanvugt/unity:
    https://launchpad.net/~vanvugt/+archive/unity
However it may take a while to build and then get published.

Only 1 line of code was required in the end. But it's not the final fix...

--- plugins/unityshell/src/UScreen.cpp 2011-09-26 14:43:35 +0000
+++ plugins/unityshell/src/UScreen.cpp 2011-10-15 09:32:14 +0000
@@ -130,5 +130,10 @@

   g_print("\n");

+ // XXX Temporary fix for LP: #742544
+ // The final fix should default to lowest_x as above, but should also
+ // be configurable to use gdk_screen_get_primary_monitor like in natty.
+ primary_ = gdk_screen_get_primary_monitor(gdk_screen_get_default());
+
   changed.emit(primary_, _monitors);
 }