Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Staging:E:DVD
spectacle
0001-Decide-to-use-the-wayland-backend-by-looki...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Decide-to-use-the-wayland-backend-by-looking-at-XDG_.patch of Package spectacle
From 3dad76703cbc5810202f41642c84d32ca7b50933 Mon Sep 17 00:00:00 2001 From: Fabian Vogt <fabian@ritter-vogt.de> Date: Sat, 24 Mar 2018 19:21:43 +0100 Subject: [PATCH] Decide to use the wayland backend by looking at XDG_SESSION_TYPE Summary: With plasma-workspace master, QT_QPA_PLATFORM is no longer set, so spectacle runs with the xcb platform plugin. Test Plan: Installed, can take screenshots on wayland again. Reviewers: #spectacle, graesslin Differential Revision: https://phabricator.kde.org/D11655 --- src/SpectacleCore.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/SpectacleCore.cpp b/src/SpectacleCore.cpp index cf3f06e..99fdbd9 100644 --- a/src/SpectacleCore.cpp +++ b/src/SpectacleCore.cpp @@ -59,14 +59,14 @@ SpectacleCore::SpectacleCore(StartMode startMode, ImageGrabber::GrabMode grabMod setFilename(saveFileName); } + if (qstrcmp(qgetenv("XDG_SESSION_TYPE"), "wayland") == 0) { + mImageGrabber = new KWinWaylandImageGrabber; + } #ifdef XCB_FOUND - if (KWindowSystem::isPlatformX11()) { + if (!mImageGrabber && KWindowSystem::isPlatformX11()) { mImageGrabber = new X11ImageGrabber; } #endif - if (!mImageGrabber && KWindowSystem::isPlatformWayland()) { - mImageGrabber = new KWinWaylandImageGrabber; - } if (!mImageGrabber) { mImageGrabber = new DummyImageGrabber; -- 2.16.2
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor