[ShellApp] Fix handler signature for workspace switch

This was causing crashes or undefined behavior.

https://bugzilla.gnome.org/show_bug.cgi?id=598227
This commit is contained in:
Colin Walters 2009-10-15 13:52:17 -04:00
parent d9df7c1b1e
commit d705c1bb52

View File

@ -243,8 +243,13 @@ shell_app_on_unmanaged (MetaWindow *window,
}
static void
shell_app_on_ws_switch (ShellApp *self)
shell_app_on_ws_switch (MetaScreen *screen,
int from,
int to,
MetaMotionDirection direction,
gpointer data)
{
ShellApp *self = SHELL_APP (data);
self->window_sort_stale = TRUE;
g_signal_emit (self, shell_app_signals[WINDOWS_CHANGED], 0);
}