@@ -36,7 +36,6 @@ namespace Gala {
3636
3737 private List<MonitorClone > window_containers_monitors;
3838
39- private IconGroupContainer icon_groups;
4039 private ActorTarget workspaces;
4140 private Clutter . Actor primary_monitor_container;
4241 private Clutter . BrightnessContrastEffect brightness_effect;
@@ -73,8 +72,6 @@ namespace Gala {
7372 workspaces_gesture_controller. enable_touchpad ();
7473 workspaces_gesture_controller. enable_scroll (this , HORIZONTAL );
7574
76- icon_groups = new IconGroupContainer (display. get_monitor_scale (display. get_primary_monitor ()));
77-
7875 brightness_effect = new Clutter .BrightnessContrastEffect ();
7976 update_brightness_effect ();
8077
@@ -88,7 +85,6 @@ namespace Gala {
8885 // multitasking view UI. The Clutter.Actor of this class has to be allowed to grow to the size of the
8986 // stage as it contains MonitorClones for each monitor.
9087 primary_monitor_container = new ActorTarget ();
91- primary_monitor_container. add_child (icon_groups);
9288 primary_monitor_container. add_child (workspaces);
9389 add_child (primary_monitor_container);
9490
@@ -152,7 +148,6 @@ namespace Gala {
152148
153149 var primary_geometry = display. get_monitor_geometry (primary);
154150 var scale = display. get_monitor_scale (primary);
155- icon_groups. scale_factor = scale;
156151
157152 primary_monitor_container. set_position (primary_geometry. x, primary_geometry. y);
158153 primary_monitor_container. set_size (primary_geometry. width, primary_geometry. height);
@@ -167,7 +162,6 @@ namespace Gala {
167162 private void update_workspaces () {
168163 foreach (unowned var child in workspaces. get_children ()) {
169164 unowned var workspace_clone = (WorkspaceClone ) child;
170- icon_groups. remove_group (workspace_clone. icon_group);
171165 workspace_clone. destroy ();
172166 }
173167
@@ -257,12 +251,8 @@ namespace Gala {
257251 }
258252
259253 if (! opened) {
260- modal_proxy = wm. push_modal (this );
261- modal_proxy. set_keybinding_filter (keybinding_filter);
262-
263- var scale = display. get_monitor_scale (display. get_primary_monitor ());
264- icon_groups. force_reposition ();
265- icon_groups. y = primary_monitor_container. height - InternalUtils . scale_to_int (WorkspaceClone . BOTTOM_OFFSET - 20 , scale);
254+ // modal_proxy = wm.push_modal (this);
255+ // modal_proxy.set_keybinding_filter (keybinding_filter);
266256 } else {
267257 DragDropAction . cancel_all_by_id (" multitaskingview-window" );
268258 }
@@ -308,7 +298,7 @@ namespace Gala {
308298 wm. top_window_group. show ();
309299 hide ();
310300
311- wm. pop_modal (modal_proxy);
301+ // wm.pop_modal (modal_proxy);
312302 }
313303 }
314304
@@ -328,32 +318,6 @@ namespace Gala {
328318 } else {
329319 workspaces_gesture_controller. progress = - manager. get_active_workspace_index ();
330320 }
331-
332- reposition_icon_groups (animate);
333- }
334-
335- private void reposition_icon_groups (bool animate) {
336- unowned Meta . WorkspaceManager manager = display. get_workspace_manager ();
337- var active_index = manager. get_active_workspace (). index ();
338-
339- if (animate) {
340- icon_groups. save_easing_state ();
341- icon_groups. set_easing_mode (Clutter . AnimationMode . EASE_OUT_QUAD );
342- icon_groups. set_easing_duration (200 );
343- }
344-
345- var scale = display. get_monitor_scale (display. get_primary_monitor ());
346- // make sure the active workspace's icongroup is always visible
347- var icon_groups_width = icon_groups. calculate_total_width ();
348- if (icon_groups_width > primary_monitor_container. width) {
349- icon_groups. x = (- active_index * InternalUtils . scale_to_int (IconGroupContainer . SPACING + IconGroup . SIZE , scale) + primary_monitor_container. width / 2 )
350- .clamp (primary_monitor_container. width - icon_groups_width - InternalUtils . scale_to_int (64 , scale), InternalUtils . scale_to_int (64 , scale));
351- } else
352- icon_groups. x = primary_monitor_container. width / 2 - icon_groups_width / 2 ;
353-
354- if (animate) {
355- icon_groups. restore_easing_state ();
356- }
357321 }
358322
359323 private void add_workspace (int num) {
@@ -362,7 +326,6 @@ namespace Gala {
362326
363327 var workspace = new WorkspaceClone (manager. get_workspace_by_index (num), scale);
364328 workspaces. insert_child_at_index (workspace, num);
365- icon_groups. add_group (workspace. icon_group);
366329
367330 workspace. window_selected. connect (window_selected);
368331 workspace. selected. connect (activate_workspace);
@@ -395,10 +358,6 @@ namespace Gala {
395358 workspace. window_selected. disconnect (window_selected);
396359 workspace. selected. disconnect (activate_workspace);
397360
398- if (icon_groups. contains (workspace. icon_group)) {
399- icon_groups. remove_group (workspace. icon_group);
400- }
401-
402361 workspace. destroy ();
403362
404363 update_positions (opened);
0 commit comments