Skip to content

Commit 0d1aff2

Browse files
WindowClone: always show window title (#2344)
Co-authored-by: Leonhard <[email protected]>
1 parent 823e5bb commit 0d1aff2

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/Widgets/MultitaskingView/WindowClone.vala

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ public class Gala.WindowClone : ActorTarget {
140140
};
141141

142142
window_title = new Tooltip ();
143-
window_title.opacity = 0;
144143

145144
add_child (active_shape);
146145
add_child (clone_container);
@@ -258,17 +257,16 @@ public class Gala.WindowClone : ActorTarget {
258257

259258
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "x", typeof (float), (float) window_rect.x, (float) slot.x));
260259
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "y", typeof (float), (float) window_rect.y, (float) slot.y));
261-
262260
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "width", typeof (float), (float) window_rect.width, (float) slot.width));
263261
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "height", typeof (float), (float) window_rect.height, (float) slot.height));
264-
262+
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "shadow-opacity", typeof (uint8), (uint8) 0u, (uint8) 255u));
265263
if (should_fade ()) {
266264
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "opacity", typeof (uint8), (uint8) 0u, (uint8) 255u));
267265
}
268266

269267
add_target (new PropertyTarget (MULTITASKING_VIEW, window_icon, "opacity", typeof (uint), 0u, 255u));
270268

271-
add_target (new PropertyTarget (MULTITASKING_VIEW, this, "shadow-opacity", typeof (uint8), (uint8) 0u, (uint8) 255u));
269+
add_target (new PropertyTarget (MULTITASKING_VIEW, window_title, "opacity", typeof (uint), 0u, 255u));
272270
}
273271

274272
public override void start_progress (GestureAction action) {
@@ -394,12 +392,6 @@ public class Gala.WindowClone : ActorTarget {
394392
close_button.set_easing_duration (duration);
395393
close_button.opacity = show ? 255 : 0;
396394
close_button.restore_easing_state ();
397-
398-
window_title.save_easing_state ();
399-
window_title.set_easing_mode (Clutter.AnimationMode.LINEAR);
400-
window_title.set_easing_duration (duration);
401-
window_title.opacity = show ? 255 : 0;
402-
window_title.restore_easing_state ();
403395
}
404396

405397
/**

0 commit comments

Comments
 (0)