Skip to content

Commit af735cb

Browse files
committed
cinnamon-screenshot.c: Filter out the desktop windows by window
type, not title. Fixes #13627
1 parent 3e6544e commit af735cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/cinnamon-screenshot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -530,7 +530,7 @@ cinnamon_screenshot_screenshot_window (CinnamonScreenshot *screenshot,
530530
MetaWindow *window = meta_display_get_focus_window (display);
531531
ClutterActor *stage;
532532

533-
if (window == NULL || g_strcmp0 (meta_window_get_title (window), "Desktop") == 0)
533+
if (window == NULL || meta_window_get_window_type (window) == META_WINDOW_DESKTOP)
534534
{
535535
cinnamon_screenshot_screenshot (screenshot, include_cursor, filename, callback);
536536
return;

0 commit comments

Comments
 (0)