We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6694bf commit c549f7bCopy full SHA for c549f7b
1 file changed
src/main.cpp
@@ -573,13 +573,12 @@ int main(int argc, char* argv[])
573
bool pin = parser.isSet(pinOption);
574
bool edit = parser.isSet(editOption);
575
576
- CaptureRequest req(edit ? CaptureRequest::GRAPHICAL_MODE
577
- : CaptureRequest::SCREEN_MODE,
578
- delay);
579
-
580
- // For edit mode, set the selected monitor
581
- if (edit && screenNumber >= 0) {
582
- req.setSelectedMonitor(screenNumber);
+ CaptureRequest req(CaptureRequest::SCREEN_MODE, delay, screenNumber);
+ if (edit) {
+ req = CaptureRequest(CaptureRequest::GRAPHICAL_MODE, delay);
+ if (screenNumber >= 0) {
+ req.setSelectedMonitor(screenNumber);
+ }
583
}
584
585
if (!region.isEmpty()) {
0 commit comments