public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-misc/alltray/files: alltray-0.69-compiz.patch
@ 2008-06-07 19:42 Sven Wegener (swegener)
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wegener (swegener) @ 2008-06-07 19:42 UTC (permalink / raw
  To: gentoo-commits

swegener    08/06/07 19:42:03

  Added:                alltray-0.69-compiz.patch
  Log:
  Add support for compiz, bug #217266.
  (Portage version: 2.1.5.4)

Revision  Changes    Path
1.1                  x11-misc/alltray/files/alltray-0.69-compiz.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/alltray/files/alltray-0.69-compiz.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-misc/alltray/files/alltray-0.69-compiz.patch?rev=1.1&content-type=text/plain

Index: alltray-0.69-compiz.patch
===================================================================
--- alltray-0.69/src/utils.c
+++ alltray-0.69/src/utils.c
@@ -24,6 +24,7 @@
  * Copyright:
  * 
  *    Jochen Baier, 2004, 2005, 2006 (email@Jochen-Baier.de)
+ *    Portions by Michael B. Trausch, 2007, 2008 (mike@trausch.us)
  *
  *
  * Based on code from:
@@ -1475,6 +1476,20 @@
       return;
     }
 
+    // Interact nicely with Compiz, which works slightly differently.
+    // We use get_window_manager() instead of win->window_manager because
+    // win->window_manager is not always populated when running under
+    // Compiz.
+    if ((!strcasecmp(get_window_manager(), "compiz")) && (win->no_title)
+        && (!win->xmms)) {
+      title_string = title;
+      if (win->no_reparent) {
+        gdk_window_set_title(win->child_gdk, title_string);
+      } else {
+        gdk_window_set_title(win->parent_gdk, title_string);
+      }
+    }
+
     if (!win->xmms) {
       title_string=g_strconcat (title, " (AllTray)", NULL);

--- alltray-0.69/src/clickmode.c
+++ alltray-0.69/src/clickmode.c
@@ -141,7 +141,7 @@
 
              target_win != None &&
              target_win != GDK_ROOT_WINDOW() &&
-             target_win != target_win_xmu &&
+             (target_win != target_win_xmu  || win->compiz == TRUE) &&
              window_type_is_normal (target_win_xmu))) {
 
               gdk_pointer_ungrab  (GDK_CURRENT_TIME); 
--- alltray-0.69/src/common.h
+++ alltray-0.69/src/common.h
@@ -186,6 +186,7 @@
 
   gchar *window_manager;
   gboolean gnome;
+  gboolean compiz;
   gboolean kde;
 
   gboolean no_reparent;
--- alltray-0.69/src/main.c
+++ alltray-0.69/src/main.c
@@ -123,6 +123,7 @@
 
   win->window_manager=NULL;
   win->gnome=FALSE;
+  win->compiz=FALSE;
   win->kde=FALSE;
   
   win->no_reparent=FALSE;
@@ -169,8 +170,8 @@
 
   if (debug) printf ("window manager: %s\n", win->window_manager);
 
-  if (!strcmp(win->window_manager, "Metacity")) {
-
+  if ((!strcmp(win->window_manager, "Metacity")) || (!strcmp(win->window_manager, "compiz"))) {
+
     #ifndef GCONF_NOT_DISABLED
           printf ("\n\nAlltray: To use Alltray under Gnome, Gconf support should not be disabled.\n"
                   "         But it is.\n\n");
@@ -181,6 +182,10 @@
     win->no_reparent=TRUE;
   }
 
+  if (!strcmp(win->window_manager, "compiz")) {
+     win->compiz = TRUE;
+  }
+
   if (!strcmp(win->window_manager, "KWin")) {
      win->kde=TRUE;
      win->no_reparent=TRUE;
@@ -237,6 +242,7 @@
 
     win->gnome=FALSE;
     win->kde=FALSE;
+    win->compiz=FALSE;
     win->no_reparent=TRUE;
   }



-- 
gentoo-commits@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in x11-misc/alltray/files: alltray-0.69-compiz.patch
@ 2011-03-25 18:53 Samuli Suominen (ssuominen)
  0 siblings, 0 replies; 2+ messages in thread
From: Samuli Suominen (ssuominen) @ 2011-03-25 18:53 UTC (permalink / raw
  To: gentoo-commits

ssuominen    11/03/25 18:53:57

  Removed:              alltray-0.69-compiz.patch
  Log:
  old
  
  (Portage version: 2.2.0_alpha28/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-25 18:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-25 18:53 [gentoo-commits] gentoo-x86 commit in x11-misc/alltray/files: alltray-0.69-compiz.patch Samuli Suominen (ssuominen)
  -- strict thread matches above, loose matches on Subject: below --
2008-06-07 19:42 Sven Wegener (swegener)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox