Changeset View
Changeset View
Standalone View
Standalone View
src/PlatformBackends/KWinWaylandImageGrabber.cpp
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Line(s) | 159 | if (pipe2(pipeFds, O_CLOEXEC|O_NONBLOCK) != 0) { | |||
---|---|---|---|---|---|
161 | return; | 161 | return; | ||
162 | } | 162 | } | ||
163 | 163 | | |||
164 | callDBus(mode, pipeFds[1], argument); | 164 | callDBus(mode, pipeFds[1], argument); | ||
165 | startReadImage(pipeFds[0]); | 165 | startReadImage(pipeFds[0]); | ||
166 | 166 | | |||
167 | close(pipeFds[1]); | 167 | close(pipeFds[1]); | ||
168 | } | 168 | } | ||
169 | | ||||
170 | QVector<ImageGrabber::GrabMode> KWinWaylandImageGrabber::supportedModes() const | ||||
171 | { | ||||
172 | if (QApplication::screens().count() == 1) { | ||||
173 | return {FullScreen, WindowUnderCursor, TransientWithParent}; | ||||
174 | } | ||||
175 | | ||||
176 | return {FullScreen, CurrentScreen, WindowUnderCursor, TransientWithParent}; | ||||
177 | } |