deskbar-applet r2497 - in trunk: . deskbar/handlers



Author: sebp
Date: Mon Dec  8 10:42:57 2008
New Revision: 2497
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=2497&view=rev

Log:
Show windows that are part of viewport that is currently not visible (patch by Daniel Wutke)

Modified:
   trunk/ChangeLog
   trunk/deskbar/handlers/iswitch-window.py

Modified: trunk/deskbar/handlers/iswitch-window.py
==============================================================================
--- trunk/deskbar/handlers/iswitch-window.py	(original)
+++ trunk/deskbar/handlers/iswitch-window.py	Mon Dec  8 10:42:57 2008
@@ -30,6 +30,13 @@
             LOGGER.warning("Using bogus timestamp.")
             time = gtk.get_current_event_time()
         
+        workspace = self._window.get_workspace()
+        if workspace != None and workspace.is_virtual():
+            if not self._window.is_in_viewport(workspace):
+                pos_x = workspace.get_viewport_x() + self._window.get_geometry()[0]
+                pos_y = workspace.get_viewport_y() + self._window.get_geometry()[1]
+                self._window.get_screen().move_viewport(pos_x, pos_y)
+
         if hasattr(self._window.get_workspace(), 'activate') and self._window.get_workspace() != self._window.get_screen().get_active_workspace():
             self._window.get_workspace().activate(time)
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]