mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
sway/workspaces: make clicking on workspaces idempotent
Previously, clicking on the same workspace you were on would throw you to another workspace if `workspace_auto_back_and_forth yes` was specified in your sway config. This also fixes workspace output moving misbehaving and doing the same.
This commit is contained in:
@ -20,6 +20,8 @@ class Workspaces : public AModule, public sigc::trackable {
|
||||
auto update() -> void;
|
||||
|
||||
private:
|
||||
static inline const std::string workspace_switch_cmd_ = "workspace --no-auto-back-and-forth \"{}\"";
|
||||
|
||||
void onCmd(const struct Ipc::ipc_response&);
|
||||
void onEvent(const struct Ipc::ipc_response&);
|
||||
bool filterButtons();
|
||||
|
Reference in New Issue
Block a user