1
0
Fork 0

screen: Remove a bunch of screen checks

Now that we only manage one screen, this isn't necessary anymore.
This commit is contained in:
Jasper St. Pierre 2014-08-15 19:43:08 -04:00
parent 320f38de47
commit 06d55bf019
3 changed files with 13 additions and 25 deletions

View file

@ -1022,9 +1022,7 @@ meta_screen_foreach_window (MetaScreen *screen,
{
MetaWindow *window = tmp->data;
if (META_IS_WINDOW (window) &&
window->screen == screen &&
!window->override_redirect)
if (META_IS_WINDOW (window) && !window->override_redirect)
(* func) (screen, window, data);
}
@ -2098,8 +2096,6 @@ set_work_area_hint (MetaScreen *screen)
{
MetaWorkspace *workspace = tmp_list->data;
if (workspace->screen == screen)
{
meta_workspace_get_work_area_all_monitors (workspace, &area);
tmp[0] = area.x;
tmp[1] = area.y;
@ -2107,7 +2103,6 @@ set_work_area_hint (MetaScreen *screen)
tmp[3] = area.height;
tmp += 4;
}
tmp_list = tmp_list->next;
}
@ -2501,7 +2496,6 @@ on_monitors_changed (MetaMonitorManager *manager,
{
MetaWindow *window = tmp->data;
if (window->screen == screen)
meta_window_update_for_monitors_changed (window);
}
@ -2544,7 +2538,6 @@ queue_windows_showing (MetaScreen *screen)
{
MetaWindow *w = tmp->data;
if (w->screen == screen)
meta_window_queue (w, META_QUEUE_CALC_SHOWING);
tmp = tmp->next;
@ -2567,9 +2560,7 @@ meta_screen_minimize_all_on_active_workspace_except (MetaScreen *screen,
{
MetaWindow *w = tmp->data;
if (w->screen == screen &&
w->has_minimize_func &&
w != keep)
if (w->has_minimize_func && w != keep)
meta_window_minimize (w);
tmp = tmp->next;
@ -2597,8 +2588,7 @@ meta_screen_show_desktop (MetaScreen *screen,
{
MetaWindow *w = windows->data;
if (w->screen == screen &&
w->type == META_WINDOW_DESKTOP)
if (w->type == META_WINDOW_DESKTOP)
{
meta_window_focus (w, timestamp);
break;

View file

@ -639,8 +639,7 @@ create_constraints (Constraint **constraints,
parent = w->transient_for;
if (parent && WINDOW_IN_STACK (parent) &&
parent->screen == w->screen)
if (parent && WINDOW_IN_STACK (parent))
{
meta_topic (META_DEBUG_STACK, "Constraining %s above %s due to transiency\n",
w->desc, parent->desc);

View file

@ -1488,8 +1488,7 @@ gboolean
meta_window_located_on_workspace (MetaWindow *window,
MetaWorkspace *workspace)
{
return (window->on_all_workspaces && window->screen == workspace->screen) ||
(window->workspace == workspace);
return (window->on_all_workspaces) || (window->workspace == workspace);
}
static gboolean