diff options
Diffstat (limited to 'qxt-mini')
| -rw-r--r-- | qxt-mini/CMakeLists.txt | 4 | ||||
| -rw-r--r-- | qxt-mini/qxtglobalshortcut.cpp | 6 | ||||
| -rw-r--r-- | qxt-mini/qxtglobalshortcut_x11.cpp | 4 | 
3 files changed, 9 insertions, 5 deletions
| diff --git a/qxt-mini/CMakeLists.txt b/qxt-mini/CMakeLists.txt index 21b2b160..1b2496f6 100644 --- a/qxt-mini/CMakeLists.txt +++ b/qxt-mini/CMakeLists.txt @@ -3,7 +3,9 @@ if(UNIX OR APPLE)      include_directories(SYSTEM ${Qt5Gui_PRIVATE_INCLUDE_DIRS})      otr_module(qxt-mini NO-COMPAT BIN)      if(APPLE) -        target_link_options(${self} PUBLIC -framework Carbon -framework CoreFoundation) +        find_library(CoreFoundation CoreFoundation) +        find_library(Carbon Carbon) +        target_link_options(${self} PUBLIC -framework Carbon -I ${CoreFoundation})      else()          otr_pkgconfig(${self} x11 xcb xproto)      endif() diff --git a/qxt-mini/qxtglobalshortcut.cpp b/qxt-mini/qxtglobalshortcut.cpp index 69514f88..52758f71 100644 --- a/qxt-mini/qxtglobalshortcut.cpp +++ b/qxt-mini/qxtglobalshortcut.cpp @@ -36,6 +36,10 @@  #include <QtDebug>  #include <QtGlobal> +#ifdef __GNUG__ +#   pragma GCC diagnostic ignored "-Wdeprecated-declarations" +#endif +  QHash<QPair<quint32, quint32>, QxtGlobalShortcut*> QxtGlobalShortcutPrivate::shortcuts;  void QxtGlobalShortcutPrivate::event_filter_installer::ensure_event_filter() @@ -55,7 +59,7 @@ void QxtGlobalShortcutPrivate::event_filter_installer::ensure_event_filter()  QxtGlobalShortcutPrivate::QxtGlobalShortcutPrivate(QxtGlobalShortcutPrivate::tag) :      keystate(false), enabled(false), key(Qt::Key(0)), mods(Qt::NoModifier)  { -    qDebug() << "qxt-mini: adding event filter"; +    //qDebug() << "qxt-mini: adding event filter";  }  QxtGlobalShortcutPrivate::QxtGlobalShortcutPrivate() : diff --git a/qxt-mini/qxtglobalshortcut_x11.cpp b/qxt-mini/qxtglobalshortcut_x11.cpp index 6647d803..01894cfc 100644 --- a/qxt-mini/qxtglobalshortcut_x11.cpp +++ b/qxt-mini/qxtglobalshortcut_x11.cpp @@ -355,9 +355,7 @@ bool QxtGlobalShortcutPrivate::nativeEventFilter(const QByteArray & eventType,              (void) XkbSetDetectableAutoRepeat(x11.display(), True, &val); -            if (val) -                qDebug() << "qxt-mini: fixed x11 autorepeat"; -            else +            if (!val)                  qDebug() << "qxt-mini: can't fix x11 autorepeat";          }      } | 
