[xwayland] Don't update xrandr in WaylandScreens
Xwayland is able to update randr information based on the Wayland Outputs, so it's not needed to do so from KWin.
This commit is contained in:
parent
76b4d8f2d5
commit
f651007ebe
1 changed files with 5 additions and 0 deletions
|
@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
#include "wayland_backend.h"
|
#include "wayland_backend.h"
|
||||||
#include <KWayland/Client/output.h>
|
#include <KWayland/Client/output.h>
|
||||||
|
#include "main.h"
|
||||||
#include "utils.h"
|
#include "utils.h"
|
||||||
#include "xcbutils.h"
|
#include "xcbutils.h"
|
||||||
|
|
||||||
|
@ -208,6 +209,10 @@ static bool addModeToOutput(xcb_randr_output_t output, xcb_randr_mode_t mode)
|
||||||
|
|
||||||
void WaylandScreens::updateXRandr()
|
void WaylandScreens::updateXRandr()
|
||||||
{
|
{
|
||||||
|
if (kwinApp()->operationMode() == Application::OperationModeXwayland) {
|
||||||
|
// no need to update, will be done automagically by Xwayland
|
||||||
|
return;
|
||||||
|
}
|
||||||
if (!Xcb::Extensions::self()->isRandrAvailable()) {
|
if (!Xcb::Extensions::self()->isRandrAvailable()) {
|
||||||
qCDebug(KWIN_CORE) << "No RandR extension available, cannot sync with X";
|
qCDebug(KWIN_CORE) << "No RandR extension available, cannot sync with X";
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue