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

Commit c41694f2 authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Correct DesktopConfigImpl.useWindowShadow" into main

parents 43661d7a 78b6379c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -79,7 +79,7 @@ class DesktopConfigImpl(
        SystemProperties.getBoolean("persist.wm.debug.desktop_use_rounded_corners", true)

    override fun useWindowShadow(isFocusedWindow: Boolean): Boolean =
        if (isFocusedWindow) USE_WINDOW_SHADOWS_FOCUSED_WINDOW else USE_WINDOW_SHADOWS
        USE_WINDOW_SHADOWS || (isFocusedWindow && USE_WINDOW_SHADOWS_FOCUSED_WINDOW)

    override fun shouldSetBackground(taskInfo: TaskInfo): Boolean =
        taskInfo.isFreeform &&