From 9b2a9129d27e5666c188a4c3488da87cf7bc3a7d Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 31 Jul 2017 13:05:40 -0400 Subject: A few updates for lumina-screenshot: When selecting a window/area, make the window transparent. Ensure the single-instance system works for this apps (was not closing new process). --- src-qt5/desktop-utils/lumina-screenshot/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src-qt5/desktop-utils/lumina-screenshot/main.cpp') diff --git a/src-qt5/desktop-utils/lumina-screenshot/main.cpp b/src-qt5/desktop-utils/lumina-screenshot/main.cpp index c1d178a2..c5a9e2c5 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/main.cpp +++ b/src-qt5/desktop-utils/lumina-screenshot/main.cpp @@ -15,6 +15,7 @@ int main(int argc, char ** argv) unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR"); LTHEME::LoadCustomEnvSettings(); LSingleApplication a(argc, argv, "l-screenshot"); + if(!a.isPrimaryProcess()){ return 0; } //LuminaThemeEngine theme(&a); a.setApplicationName("Take Screenshot"); -- cgit From 96252f4e5af25f24c4e7232cc42c077894e03370 Mon Sep 17 00:00:00 2001 From: Ken Moore Date: Mon, 31 Jul 2017 13:54:16 -0400 Subject: Fix the clearing of the QT_AUTO_SCREEN_SCALE_FACTOR variable on start of the screensaver --- src-qt5/desktop-utils/lumina-screenshot/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src-qt5/desktop-utils/lumina-screenshot/main.cpp') diff --git a/src-qt5/desktop-utils/lumina-screenshot/main.cpp b/src-qt5/desktop-utils/lumina-screenshot/main.cpp index c5a9e2c5..e49599bf 100644 --- a/src-qt5/desktop-utils/lumina-screenshot/main.cpp +++ b/src-qt5/desktop-utils/lumina-screenshot/main.cpp @@ -11,9 +11,9 @@ int main(int argc, char ** argv) { + LTHEME::LoadCustomEnvSettings(); //Make sure Qt5 auto-scaling is disabled for this application (need exact pixel measurements) unsetenv("QT_AUTO_SCREEN_SCALE_FACTOR"); - LTHEME::LoadCustomEnvSettings(); LSingleApplication a(argc, argv, "l-screenshot"); if(!a.isPrimaryProcess()){ return 0; } //LuminaThemeEngine theme(&a); -- cgit