@@ -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);
@@ -168,6 +167,7 @@ public class Gala.WindowClone : ActorTarget {
168167 opacity = 0
169168 };
170169 close_button. triggered. connect (close_window);
170+ close_button. notify[" has-pointer" ]. connect (() = > update_hover_widgets ());
171171
172172 window_icon = new WindowIcon (window, WINDOW_ICON_SIZE , (int )Math . round (monitor_scale_factor)) {
173173 visible = ! overview_mode
@@ -257,17 +257,16 @@ public class Gala.WindowClone : ActorTarget {
257257
258258 add_target (new PropertyTarget (MULTITASKING_VIEW , this , " x" , typeof (float ), (float ) window_rect. x, (float ) slot. x));
259259 add_target (new PropertyTarget (MULTITASKING_VIEW , this , " y" , typeof (float ), (float ) window_rect. y, (float ) slot. y));
260-
261260 add_target (new PropertyTarget (MULTITASKING_VIEW , this , " width" , typeof (float ), (float ) window_rect. width, (float ) slot. width));
262261 add_target (new PropertyTarget (MULTITASKING_VIEW , this , " height" , typeof (float ), (float ) window_rect. height, (float ) slot. height));
263-
262+ add_target ( new PropertyTarget ( MULTITASKING_VIEW , this , " shadow-opacity " , typeof ( uint8 ), ( uint8 ) 0u , ( uint8 ) 255u ));
264263 if (should_fade ()) {
265264 add_target (new PropertyTarget (MULTITASKING_VIEW , this , " opacity" , typeof (uint8 ), (uint8 ) 0u , (uint8 ) 255u ));
266265 }
267266
268267 add_target (new PropertyTarget (MULTITASKING_VIEW , window_icon, " opacity" , typeof (uint ), 0u , 255u ));
269268
270- 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 ));
271270 }
272271
273272 public override void start_progress (GestureAction action ) {
@@ -386,19 +385,13 @@ public class Gala.WindowClone : ActorTarget {
386385
387386 var duration = Utils . get_animation_duration (FADE_ANIMATION_DURATION );
388387
389- var show = has_pointer && ! in_slot_animation;
388+ var show = ( has_pointer || close_button . has_pointer) && ! in_slot_animation;
390389
391390 close_button. save_easing_state ();
392391 close_button. set_easing_mode (Clutter . AnimationMode . LINEAR );
393392 close_button. set_easing_duration (duration);
394393 close_button. opacity = show ? 255 : 0 ;
395394 close_button. restore_easing_state ();
396-
397- window_title. save_easing_state ();
398- window_title. set_easing_mode (Clutter . AnimationMode . LINEAR );
399- window_title. set_easing_duration (duration);
400- window_title. opacity = show ? 255 : 0 ;
401- window_title. restore_easing_state ();
402395 }
403396
404397 /**
0 commit comments