[compiz] catch event when workspace is changing

Akbar akbarhome at gmail.com
Mon Nov 13 18:36:44 PST 2006


how do you do that? In normal session, this is how you do it with python:
import gtk
import wnck

def workspace_changed(screen):
  workspace =  screen.get_active_workspace()
  print workspace.get_name()

screen = wnck.screen_get_default()
screen.connect("active_workspace_changed", workspace_changed)


With compiz, that code does not work because compiz use only one
workspace (that is very very big). So how do you catch event when
workspace is changing in compiz session? Python api would be nice, but
C api is okay.

Thank you.

More information about the compiz mailing list