mirror of
https://github.com/elementary/gala.git
synced 2024-12-18 23:02:14 +03:00
Fix initial alt-tab switcher indicator visibility. (#1417)
This commit is contained in:
parent
5b628512d6
commit
e0095415cd
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user