mirror of
https://github.com/elementary/gala.git
synced 2025-01-03 07:42:14 +03:00
opacity transition on WindowIcons can be null on WM startup
This commit is contained in:
parent
fcd7d35f3d
commit
8a433d7030
@ -409,10 +409,16 @@ namespace Gala {
|
||||
window_icon.opacity = 0;
|
||||
set_window_icon_position (outer_rect.width, outer_rect.height);
|
||||
|
||||
window_icon.get_transition ("opacity").completed.connect (() => {
|
||||
var transition = window_icon.get_transition ("opacity");
|
||||
if (transition != null) {
|
||||
transition.completed.connect (() => {
|
||||
in_slot_animation = false;
|
||||
place_widgets (outer_rect.width, outer_rect.height);
|
||||
});
|
||||
} else {
|
||||
in_slot_animation = false;
|
||||
place_widgets (outer_rect.width, outer_rect.height);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
if (!animate || gesture_tracker == null || !with_gesture) {
|
||||
|
Loading…
Reference in New Issue
Block a user