From 5a92d0b24a661e160c98c7ecfaf7da0b043d4ef6 Mon Sep 17 00:00:00 2001 From: "Kevin S.C. Decker" Date: Thu, 29 Dec 2016 00:06:19 +0100 Subject: workspace: switch wrapping behavior for 'classic' and 'toroidal' --- src/core/workspace.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/core') diff --git a/src/core/workspace.c b/src/core/workspace.c index e2a397a0..dffb1ebf 100644 --- a/src/core/workspace.c +++ b/src/core/workspace.c @@ -863,10 +863,10 @@ meta_workspace_get_neighbor (MetaWorkspace *workspace, case META_WRAP_NONE: layout.current_col = 0; break; - case META_WRAP_TOROIDAL: + case META_WRAP_CLASSIC: layout.current_row = layout.current_row > 0 ? layout.current_row - 1 : layout.rows - 1; /* fall through */ - case META_WRAP_CLASSIC: + case META_WRAP_TOROIDAL: layout.current_col = layout.cols - 1; } /* RIGHT */ @@ -876,10 +876,10 @@ meta_workspace_get_neighbor (MetaWorkspace *workspace, case META_WRAP_NONE: layout.current_col = layout.cols - 1; break; - case META_WRAP_TOROIDAL: + case META_WRAP_CLASSIC: layout.current_row = layout.current_row < layout.rows - 1 ? layout.current_row + 1 : 0; /* fall through */ - case META_WRAP_CLASSIC: + case META_WRAP_TOROIDAL: layout.current_col = 0; } /* UP */ @@ -889,10 +889,10 @@ meta_workspace_get_neighbor (MetaWorkspace *workspace, case META_WRAP_NONE: layout.current_row = 0; break; - case META_WRAP_TOROIDAL: + case META_WRAP_CLASSIC: layout.current_col = layout.current_col > 0 ? layout.current_col - 1 : layout.cols - 1; /* fall through */ - case META_WRAP_CLASSIC: + case META_WRAP_TOROIDAL: layout.current_row = layout.rows - 1; } /* DOWN */ @@ -902,10 +902,10 @@ meta_workspace_get_neighbor (MetaWorkspace *workspace, case META_WRAP_NONE: layout.current_row = layout.rows - 1; break; - case META_WRAP_TOROIDAL: + case META_WRAP_CLASSIC: layout.current_col = layout.current_col < layout.cols - 1 ? layout.current_col + 1 : 0; /* fall through */ - case META_WRAP_CLASSIC: + case META_WRAP_TOROIDAL: layout.current_row = 0; } @@ -919,7 +919,7 @@ meta_workspace_get_neighbor (MetaWorkspace *workspace, break; case META_MOTION_RIGHT: layout.current_col = 0; - if (wrap == META_WRAP_TOROIDAL) + if (wrap == META_WRAP_CLASSIC) layout.current_row = 0; break; case META_MOTION_UP: @@ -927,7 +927,7 @@ meta_workspace_get_neighbor (MetaWorkspace *workspace, break; case META_MOTION_DOWN: layout.current_row = 0; - if (wrap == META_WRAP_TOROIDAL) + if (wrap == META_WRAP_CLASSIC) layout.current_col = layout.current_col < layout.cols - 1 ? layout.current_col + 1 : 0; break; case META_MOTION_PREV: -- cgit v1.2.1