mirror of
https://github.com/fergalmoran/flameshot.git
synced 2026-02-15 06:53:58 +00:00
fix: Code typo (#1799)
This commit is contained in:
@@ -37,7 +37,7 @@ QPixmap ScreenGrabber::grabEntireDesktop(bool& ok)
|
||||
screenPixmap.setDevicePixelRatio(currentScreen->devicePixelRatio());
|
||||
return screenPixmap;
|
||||
#elif defined(Q_OS_LINUX) || defined(Q_OS_UNIX)
|
||||
if (m_info.waylandDectected()) {
|
||||
if (m_info.waylandDetected()) {
|
||||
QPixmap res;
|
||||
// handle screenshot based on DE
|
||||
switch (m_info.windowManager()) {
|
||||
@@ -171,7 +171,7 @@ QPixmap ScreenGrabber::grabScreen(int screenNumber, bool& ok)
|
||||
{
|
||||
QPixmap p;
|
||||
bool isVirtual = QApplication::desktop()->isVirtualDesktop();
|
||||
if (isVirtual || m_info.waylandDectected()) {
|
||||
if (isVirtual || m_info.waylandDetected()) {
|
||||
p = grabEntireDesktop(ok);
|
||||
if (ok) {
|
||||
QPoint topLeft(0, 0);
|
||||
|
||||
Reference in New Issue
Block a user