search for: active_workspace_chang

Displaying 1 result from an estimated 1 matches for "active_workspace_chang".

2006 Nov 13
2
catch event when workspace is changing
Hi, 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) gtk.main() 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.