Skip to content

Commit 88d82d6

Browse files
authored
ScreenshotManager: Fix cursor inclusion for non window screenshots (#2098)
1 parent 58fc51c commit 88d82d6

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/ScreenshotManager.vala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -394,10 +394,7 @@ namespace Gala {
394394

395395
image = new Cairo.ImageSurface (Cairo.Format.ARGB32, image_width, image_height);
396396

397-
var paint_flags = Clutter.PaintFlag.NO_CURSORS;
398-
if (include_cursor) {
399-
paint_flags |= Clutter.PaintFlag.FORCE_CURSORS;
400-
}
397+
var paint_flags = include_cursor ? Clutter.PaintFlag.FORCE_CURSORS : Clutter.PaintFlag.NO_CURSORS;
401398

402399
try {
403400
if (GLib.ByteOrder.HOST == GLib.ByteOrder.LITTLE_ENDIAN) {

0 commit comments

Comments
 (0)