mirror of
https://github.com/clementine-player/Clementine
synced 2025-02-02 12:26:48 +01:00
Enable global shortcuts for all X11 platforms instead of just Linux.
Updates issue #6
This commit is contained in:
parent
9f0e399fba
commit
b66370ed87
@ -244,7 +244,7 @@ MainWindow::MainWindow(QNetworkAccessManager* network, QWidget *parent)
|
||||
|
||||
// Global shortcuts
|
||||
// Breaks on OS X and Windows
|
||||
#ifdef Q_OS_LINUX
|
||||
#ifdef Q_OS_X11
|
||||
QxtGlobalShortcut* play_pause = new QxtGlobalShortcut(QKeySequence("Media Play"), this);
|
||||
QxtGlobalShortcut* stop = new QxtGlobalShortcut(QKeySequence("Media Stop"), this);
|
||||
QxtGlobalShortcut* next = new QxtGlobalShortcut(QKeySequence("Media Next"), this);
|
||||
@ -253,7 +253,7 @@ MainWindow::MainWindow(QNetworkAccessManager* network, QWidget *parent)
|
||||
connect(stop, SIGNAL(activated()), ui_.action_stop, SLOT(trigger()));
|
||||
connect(next, SIGNAL(activated()), ui_.action_next_track, SLOT(trigger()));
|
||||
connect(prev, SIGNAL(activated()), ui_.action_previous_track, SLOT(trigger()));
|
||||
#endif // Q_OS_LINUX
|
||||
#endif // Q_OS_X11
|
||||
|
||||
// Settings
|
||||
connect(settings_dialog_, SIGNAL(accepted()), player_, SLOT(ReloadSettings()));
|
||||
|
Loading…
x
Reference in New Issue
Block a user