Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
Spectacle
Commits
23cbec2c
Commit
23cbec2c
authored
Jan 01, 2022
by
Antonio Prcela
🏞
Committed by
Bharadwaj Raju
Jan 02, 2022
Browse files
Check for right/middle click in Platform*.cpp
parent
2f9bbbfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Platforms/PlatformXcb.cpp
View file @
23cbec2c
...
...
@@ -90,6 +90,9 @@ public:
QTimer
::
singleShot
(
0
,
[
this
]()
{
mPlatformPtr
->
doGrabNow
(
mGrabMode
,
mIncludePointer
,
mIncludeDecorations
);
});
}
else
if
(
lSecondEvent
->
detail
==
2
||
lSecondEvent
->
detail
==
3
)
{
// 2: middle click, 3: right click; both cancel
Q_EMIT
mPlatformPtr
->
newScreenshotTaken
(
QPixmap
());
}
else
if
(
lSecondEvent
->
detail
<
4
)
{
Q_EMIT
mPlatformPtr
->
newScreenshotFailed
();
}
else
{
...
...
src/SpectacleCore.cpp
View file @
23cbec2c
...
...
@@ -408,9 +408,7 @@ void SpectacleCore::screenshotFailed()
Q_EMIT
allDone
();
return
;
case
StartMode
::
Gui
:
if
(
ExportManager
::
instance
()
->
captureMode
()
!=
Spectacle
::
CaptureMode
::
RectangularRegion
)
{
mMainWindow
->
screenshotFailed
();
}
mMainWindow
->
screenshotFailed
();
mMainWindow
->
setScreenshotAndShow
(
QPixmap
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment