Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9512dfc authored by Filip Gruszczynski's avatar Filip Gruszczynski
Browse files

Fix dock divider going under application windows.

When windows are added they might be added on the top of the list of
windows that share the same base layer. Dock divider does share the
base layer with application windows, but should be always above them.

Bug: 24635258
Change-Id: I3b5b7e64b625b225100058b73a671a92b908173d
parent d1728e76
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1191,7 +1191,9 @@ public class WindowManagerService extends IWindowManager.Stub
        int i;
        for (i = N - 1; i >= 0; --i) {
            WindowState w = windows.get(i);
            if (w.mBaseLayer <= myLayer) {
            // Dock divider shares the base layer with application windows, but we want to always
            // keep it above the application windows.
            if (w.mBaseLayer <= myLayer && w.mAttrs.type != TYPE_DOCK_DIVIDER) {
                break;
            }
        }