File tree 3 files changed +10
-2
lines changed 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 3
3
void PathRegistry::add_path (Path p) {
4
4
paths.emplace_back (p);
5
5
#if defined(Q_OS_UNIX) && !defined(Q_OS_DARWIN)
6
- if (! quartz::util::is_wayland ()) {
6
+ if (Settings::get ()-> supportsImmediate ()) {
7
7
// if no other frontend was explicitly selected,
8
8
// we could begin an immediate drag now (once startup is complete)
9
9
Settings::get ()->can_drag_immediately = true ;
Original file line number Diff line number Diff line change 1
1
#include " settings.hpp"
2
2
3
+ bool Settings::supportsImmediate () const {
4
+ #if defined(Q_OS_WIN)
5
+ return false ;
6
+ #endif
7
+ return !quartz::util::is_wayland ();
8
+ }
9
+
3
10
void Settings::setAlwaysOnBottom (const bool v) {
4
11
if (!suppress_always_on_bottom) {
5
12
always_on_bottom = v;
@@ -13,7 +20,7 @@ Settings::Frontend Settings::effective_frontend(bool outgoing) const {
13
20
} else if (frontend == Settings::Frontend::Auto) {
14
21
if (intercept) {
15
22
// for intercept and outgoing prefer Immediate as default frontend
16
- return quartz::util::is_wayland () ? Settings::Frontend::Stdout : Settings::Frontend::Immediate ;
23
+ return supportsImmediate () ? Settings::Frontend::Immediate : Settings::Frontend::Stdout ;
17
24
} else {
18
25
// in general (not outgoing), prefer immediate and fallback to GUI
19
26
return can_drag_immediately ? Settings::Frontend::Immediate : Settings::Frontend::Gui;
Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ class Settings : public QObject {
35
35
36
36
AutoQuitBehavior auto_quit_behavior = Settings::AutoQuitBehavior::All;
37
37
Frontend frontend = Settings::Frontend::Auto;
38
+ bool supportsImmediate () const ;
38
39
void setAlwaysOnBottom (const bool v);
39
40
Frontend effective_frontend (bool outgoing = false ) const ;
40
41
void setHideGui (const bool h);
You can’t perform that action at this time.
0 commit comments