screen: Drop the MetaScreen parameter from the foreach function
It's unused.
This commit is contained in:
parent
9c62a907c5
commit
8627b65f8d
@ -38,7 +38,7 @@
|
|||||||
#include "ui.h"
|
#include "ui.h"
|
||||||
#include "meta-monitor-manager.h"
|
#include "meta-monitor-manager.h"
|
||||||
|
|
||||||
typedef void (* MetaScreenWindowFunc) (MetaScreen *screen, MetaWindow *window,
|
typedef void (* MetaScreenWindowFunc) (MetaWindow *window,
|
||||||
gpointer user_data);
|
gpointer user_data);
|
||||||
|
|
||||||
typedef enum
|
typedef enum
|
||||||
|
@ -972,7 +972,7 @@ meta_screen_foreach_window (MetaScreen *screen,
|
|||||||
MetaScreenWindowFunc func,
|
MetaScreenWindowFunc func,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
{
|
{
|
||||||
GSList *windows, *l;
|
GSList *windows;
|
||||||
|
|
||||||
/* If we end up doing this often, just keeping a list
|
/* If we end up doing this often, just keeping a list
|
||||||
* of windows might be sensible.
|
* of windows might be sensible.
|
||||||
@ -980,11 +980,7 @@ meta_screen_foreach_window (MetaScreen *screen,
|
|||||||
|
|
||||||
windows = meta_display_list_windows (screen->display, META_LIST_DEFAULT);
|
windows = meta_display_list_windows (screen->display, META_LIST_DEFAULT);
|
||||||
|
|
||||||
for (l = windows; l != NULL; l = l->next)
|
g_slist_foreach (windows, (GFunc) func, data);
|
||||||
{
|
|
||||||
MetaWindow *window = l->data;
|
|
||||||
func (screen, window, data);
|
|
||||||
}
|
|
||||||
|
|
||||||
g_slist_free (windows);
|
g_slist_free (windows);
|
||||||
}
|
}
|
||||||
@ -2384,9 +2380,8 @@ meta_screen_free_workspace_layout (MetaWorkspaceLayout *layout)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
meta_screen_resize_func (MetaScreen *screen,
|
meta_screen_resize_func (MetaWindow *window,
|
||||||
MetaWindow *window,
|
gpointer user_data)
|
||||||
void *user_data)
|
|
||||||
{
|
{
|
||||||
if (window->struts)
|
if (window->struts)
|
||||||
{
|
{
|
||||||
|
@ -158,7 +158,8 @@ meta_workspace_init (MetaWorkspace *workspace)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
maybe_add_to_list (MetaScreen *screen, MetaWindow *window, gpointer data)
|
maybe_add_to_list (MetaWindow *window,
|
||||||
|
gpointer data)
|
||||||
{
|
{
|
||||||
GList **mru_list = data;
|
GList **mru_list = data;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user