Skip to content
This repository has been archived by the owner on Aug 31, 2020. It is now read-only.

Commit

Permalink
Removed default display env detection - #39
Browse files Browse the repository at this point in the history
  • Loading branch information
juliagoda committed Oct 29, 2018
1 parent cd5c906 commit 7fc55fb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ if(POLICY CMP0071)
cmake_policy(SET CMP0071 NEW)
endif()

set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" "${CMAKE_ROOT}/Modules")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" "${CMAKE_ROOT}/Modules" "/usr/local")


if (NOT WIN32)
Expand Down
3 changes: 3 additions & 0 deletions src/aboutdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include "eventhandlerfactory.h"

#include <SDL2/SDL_version.h>
#include <SDL2/SDL_gamecontroller.h>

#include <QtGlobal>
#include <QResource>
Expand All @@ -37,6 +38,8 @@ AboutDialog::AboutDialog(QWidget *parent) :
{
ui->setupUi(this);



qInstallMessageHandler(MessageHandler::myMessageOutput);

ui->versionLabel->setText(PadderCommon::programVersion);
Expand Down
3 changes: 1 addition & 2 deletions src/keyboard/virtualkeyboardmousewidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,7 @@ bool VirtualKeyboardMouseWidget::is_numlock_activated()
#endif

#ifdef Q_OS_UNIX
Display *dpy = XOpenDisplay(":0");
if (dpy == nullptr) dpy = XOpenDisplay(X11Extras::getInstance()->getEnvVariable("DISPLAY"));
Display *dpy = XOpenDisplay(X11Extras::getInstance()->getEnvVariable("DISPLAY"));
XKeyboardState x;
XGetKeyboardControl(dpy, &x);
XCloseDisplay(dpy);
Expand Down

0 comments on commit 7fc55fb

Please sign in to comment.