Commit 0ff6777e authored by Michael Natterer's avatar Michael Natterer 😴

plug-ins: screenshot: minor fix for the OS X screencapture command line

Add the "show cursor" option only in "shot whole screen" mode.
parent 785a9dee
......@@ -88,23 +88,25 @@ screenshot_osx_shoot (ScreenshotValues *shootvals,
break;
case SHOOT_WINDOW:
mode = "-iwo";
if (shootvals->decorate)
mode = "-iwo";
else
mode = "-iw";
break;
case SHOOT_ROOT:
mode = " ";
if (shootvals->show_cursor)
cursor = "-C";
break;
default:
g_return_val_if_reached (GIMP_PDB_CALLING_ERROR);
break;
}
delay = g_strdup_printf ("-T %i", shootvals->select_delay);
if (shootvals->show_cursor)
cursor = "-C";
filename = gimp_temp_name ("png");
quoted = g_shell_quote (filename);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment