mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-19 19:00:09 +02:00
Merge pull request #9492 from nolange/fix_norandr_build
Cleanup X11 and XRANDR Macros
This commit is contained in:
@ -119,7 +119,7 @@
|
||||
#include "VideoCommon/NetPlayChatUI.h"
|
||||
#include "VideoCommon/VideoConfig.h"
|
||||
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
#ifdef HAVE_XRANDR
|
||||
#include "UICommon/X11Utils.h"
|
||||
// This #define within X11/X.h conflicts with our WiimoteSource enum.
|
||||
#undef None
|
||||
@ -1174,7 +1174,7 @@ void MainWindow::ShowGraphicsWindow()
|
||||
{
|
||||
if (!m_graphics_window)
|
||||
{
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
#ifdef HAVE_XRANDR
|
||||
if (GetWindowSystemType() == WindowSystemType::X11)
|
||||
{
|
||||
m_xrr_config = std::make_unique<X11Utils::XRRConfiguration>(
|
||||
@ -1465,7 +1465,7 @@ void MainWindow::UpdateScreenSaverInhibition()
|
||||
|
||||
m_is_screensaver_inhibited = inhibit;
|
||||
|
||||
#if defined(HAVE_XRANDR) && HAVE_XRANDR
|
||||
#ifdef HAVE_X11
|
||||
if (GetWindowSystemType() == WindowSystemType::X11)
|
||||
UICommon::InhibitScreenSaver(winId(), inhibit);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user