TaskTray patch

Tony Houghton <[email protected]> Sat, 25 Oct 2008 18:44:50 +0100
Newsgroups gmane.comp.desktop.rox.devel
Message-ID <[email protected]>
This patch causes TaskTray to identify itself as a pager so that it can
raise windows in metacity when raise_on_click is off.

-- 
TH * http://www.realh.co.uk

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
rox-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/rox-devel
task-tray-0.7-wnck-client-type.patch (text/x-patch, 531 B)
--- main.py~	2008-10-25 18:41:09.000000000 +0100
+++ main.py	2008-10-25 18:41:40.000000000 +0100
@@ -7,12 +7,17 @@
 from tasktray import TaskTray
 from appicon_config import AppIconConfig
 
+import wnck
+
 
 class TaskTrayMain(Main):
     
     def __init__(self):
         Main.__init__(self, "TaskTray")
-        wnck.set_client_type(wnck.CLIENT_TYPE_PAGER)
+        try:
+            wnck.set_client_type(wnck.CLIENT_TYPE_PAGER)
+        except:
+            pass
 
     def init_options(self):
         Main.init_options(self)