ScreenshotManager: Fix cursor inclusion for non window screenshots (#2098)

This commit is contained in:
Leonhard 2024-10-21 08:37:38 +02:00 committed by GitHub
parent 58fc51cd8b
commit 88d82d61eb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -394,10 +394,7 @@ namespace Gala {
image = new Cairo.ImageSurface (Cairo.Format.ARGB32, image_width, image_height);
var paint_flags = Clutter.PaintFlag.NO_CURSORS;
if (include_cursor) {
paint_flags |= Clutter.PaintFlag.FORCE_CURSORS;
}
var paint_flags = include_cursor ? Clutter.PaintFlag.FORCE_CURSORS : Clutter.PaintFlag.NO_CURSORS;
try {
if (GLib.ByteOrder.HOST == GLib.ByteOrder.LITTLE_ENDIAN) {