static int screenshot_poll(bContext *C) { if (G.background) return false; return WM_operator_winactive(C); }
static bool screenshot_poll(bContext *C) { if (G.background) { return false; } return WM_operator_winactive(C); }