From 08b627c59c98d67d057e061612f165b4ff3cb966 Mon Sep 17 00:00:00 2001 From: Arno Date: Fri, 22 Nov 2019 17:46:39 +0100 Subject: Get rid of HoverWindow It depended on X11, because the hover center wasn't where it was supposed to be, so I worked around it with Xfixes.h, which unfortunately isn't even available in MSYS2. So another fix for compiling this under Windows. --- smglobals.cpp | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'smglobals.cpp') diff --git a/smglobals.cpp b/smglobals.cpp index 6b73d28..9577ebf 100644 --- a/smglobals.cpp +++ b/smglobals.cpp @@ -18,10 +18,6 @@ #include "configurationdialog.h" #include "archivebrowsermodel.h" -#include -#include - - SmGlobals *SmGlobals::mInstance = nullptr; SmGlobals::~SmGlobals(){ @@ -111,16 +107,6 @@ VideoViewer *SmGlobals::videoViewer() { return mVideoViewer; } -QSize SmGlobals::cursorSize() { - if(!mCursorSize.isValid()){ - Display *dpy = XOpenDisplay(nullptr); - XFixesCursorImage *curImage = XFixesGetCursorImage(dpy); - mCursorSize = QSize(curImage->width, curImage->height); - XFree(curImage); - } - return mCursorSize; -} - QIcon SmGlobals::iconFor(const QString &type){ QString settingsS = QString("ui/%1icon").arg(type); QSettings s; -- cgit v1.2.3-70-g09d2