1 --- alltray-0.69/src/utils.c
2 +++ alltray-0.69/src/utils.c
6 * Jochen Baier, 2004, 2005, 2006 (email@Jochen-Baier.de)
7 + * Portions by Michael B. Trausch, 2007, 2008 (mike@trausch.us)
11 @@ -1475,6 +1476,20 @@
15 + // Interact nicely with Compiz, which works slightly differently.
16 + // We use get_window_manager() instead of win->window_manager because
17 + // win->window_manager is not always populated when running under
19 + if ((!strcasecmp(get_window_manager(), "compiz")) && (win->no_title)
21 + title_string = title;
22 + if (win->no_reparent) {
23 + gdk_window_set_title(win->child_gdk, title_string);
25 + gdk_window_set_title(win->parent_gdk, title_string);
30 title_string=g_strconcat (title, " (AllTray)", NULL);
32 --- alltray-0.69/src/clickmode.c
33 +++ alltray-0.69/src/clickmode.c
37 target_win != GDK_ROOT_WINDOW() &&
38 - target_win != target_win_xmu &&
39 + (target_win != target_win_xmu || win->compiz == TRUE) &&
40 window_type_is_normal (target_win_xmu))) {
42 gdk_pointer_ungrab (GDK_CURRENT_TIME);
43 --- alltray-0.69/src/common.h
44 +++ alltray-0.69/src/common.h
47 gchar *window_manager;
53 --- alltray-0.69/src/main.c
54 +++ alltray-0.69/src/main.c
57 win->window_manager=NULL;
62 win->no_reparent=FALSE;
65 if (debug) printf ("window manager: %s\n", win->window_manager);
67 - if (!strcmp(win->window_manager, "Metacity")) {
69 + if ((!strcmp(win->window_manager, "Metacity")) || (!strcmp(win->window_manager, "compiz"))) {
71 #ifndef GCONF_NOT_DISABLED
72 printf ("\n\nAlltray: To use Alltray under Gnome, Gconf support should not be disabled.\n"
75 win->no_reparent=TRUE;
78 + if (!strcmp(win->window_manager, "compiz")) {
82 if (!strcmp(win->window_manager, "KWin")) {
84 win->no_reparent=TRUE;
90 win->no_reparent=TRUE;