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

Commit a901f575 authored by tingna_sung's avatar tingna_sung Committed by Tingna Sung
Browse files

Not include fullscreen opaque window on screenshot



Extend the fullscreen meaning by adding opaque drawn check on
screenshot application; if there is a fullscreen window but not
opaque, we will continue finding behind windows; otherwise ending up
including behind windows. It's able to help avoiding capturing BLACK
screenshot bitmap.

Change-Id: I1c7e8f513c366688ea8001c3d0c799f3522f0ffd
Signed-off-by: default avatartingna_sung <tingna_sung@htc.com>
parent af5bd75b
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -6084,6 +6084,10 @@ public class WindowManagerService extends IWindowManager.Stub
                            ws.isDisplayedLw()) {
                        screenshotReady = true;
                    }

                    if (ws.isFullscreen(dw, dh) && ws.isOpaqueDrawn()){
                        break;
                    }
                }

                if (appToken != null && appWin == null) {