Skip to content

Commit

Permalink
Prefer immediate frontend in intercept mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vimpostor committed Nov 20, 2023
1 parent 255329a commit 14342d3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,13 @@ Settings::Frontend Settings::effective_frontend(bool outgoing) const {
if (intercept && !outgoing) {
return Settings::Frontend::Gui;
} else if (frontend == Settings::Frontend::Auto) {
return intercept ? Settings::Frontend::Stdout : can_drag_immediately ? Settings::Frontend::Immediate :
Settings::Frontend::Gui;
if (intercept) {
// for intercept and outgoing prefer Immediate as default frontend
return Util::is_wayland() ? Settings::Frontend::Stdout : Settings::Frontend::Immediate;
} else {
// in general (not outgoing), prefer immediate and fallback to GUI
return can_drag_immediately ? Settings::Frontend::Immediate : Settings::Frontend::Gui;
}
}
return frontend;
}
Expand Down

0 comments on commit 14342d3

Please sign in to comment.