Fix initial alt-tab switcher indicator visibility. (#1417)

This commit is contained in:
Vishal Rao 2022-05-13 00:46:38 +05:30 committed by GitHub
parent 5b628512d6
commit e0095415cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -418,7 +418,7 @@ namespace Gala {
// are here too early, in which case all the children are at // are here too early, in which case all the children are at
// (0|0), so we can easily check for that and come back later // (0|0), so we can easily check for that and come back later
if (container.get_n_children () > 1 if (container.get_n_children () > 1
&& container.get_child_at_index (1).allocation.x1 < 1) { && container.get_child_at_index (1).x < 1) {
GLib.Timeout.add (FIX_TIMEOUT_INTERVAL, () => { GLib.Timeout.add (FIX_TIMEOUT_INTERVAL, () => {
update_indicator_position (initial); update_indicator_position (initial);
@ -427,8 +427,8 @@ namespace Gala {
return; return;
} }
float x, y; float x = cur_icon.x;
cur_icon.allocation.get_origin (out x, out y); float y = cur_icon.y;
if (initial) { if (initial) {
indicator.visible = true; indicator.visible = true;