Awn

Comment 4 for bug 145722

Revision history for this message
moonbeam (rcryderman) wrote :

haytjes,

The relevant code for detecting viewports in shinyswitcher is

=================
  shinyswitcher->got_viewport = wnck_workspace_is_virtual(wnck_screen_get_active_workspace(shinyswitcher->wnck_screen));

  if (wnck_screen_get_window_manager_name(shinyswitcher->wnck_screen))
    if (strcmp(wnck_screen_get_window_manager_name(shinyswitcher->wnck_screen), "compiz") == 0)
    {
      printf("ShinySwitcher Message: compiz detected\n");
      shinyswitcher->got_viewport = TRUE;
    }
=================

We don't have to use a config key at all... and the signals can be hooked up conditionally based on the result.