← Back to team overview

compiz team mailing list archive

[Bug 420308] Re: [regression] Cannot enable Compiz from gnome-appearance-properties

 

The problem is the function "gdk_x11_screen_get_window_manager_name"
which "gnome-appearance-properties" uses to test if Compiz has started.
Here is a small test program that demonstrates the problem:

Build and run the program. It will output 'Metacity' all the time. Then
start 'compiz --replace' while the program is running and it will
continue to print 'Metacity'. Restart the program while compiz is
running and it will output 'compiz'.

#include <gdk/gdk.h>
#include <gdk/gdkx.h>

// gcc -g intel.c -o intel-test `pkg-config --cflags gtk+-2.0 gdk-2.0`
`pkg-config --libs gtk+-2.0 gdk-2.0`

int main(int argc, char *argv[])
{
    gdk_init(&argc, &argv);

    while(1)
    {
        GdkScreen *default_gdk_screen = gdk_screen_get_default();

        if (!default_gdk_screen)
            return 0;

        printf("%s\n", gdk_x11_screen_get_window_manager_name(default_gdk_screen));
    }
}

-- 
[regression] Cannot enable Compiz from gnome-appearance-properties
https://bugs.launchpad.net/bugs/420308
You received this bug notification because you are a member of compiz
packagers, which is subscribed to compiz in ubuntu.



References