Skip to content

Commit 1a9f5ac

Browse files
committed
workspace taskbars: Add button param to click command
1 parent 7b85411 commit 1a9f5ac

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/modules/hyprland/workspace.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,8 @@ bool Workspace::handleClick(const GdkEventButton *event_button, WindowAddress co
297297
if (event_button->type == GDK_BUTTON_PRESS) {
298298
std::string command = std::regex_replace(m_workspaceManager.onClickWindow(),
299299
std::regex("\\{address\\}"), "0x" + addr);
300+
command = std::regex_replace(command, std::regex("\\{button\\}"),
301+
std::to_string(event_button->button));
300302
auto res = util::command::execNoRead(command);
301303
if (res.exit_code != 0) {
302304
spdlog::error("Failed to execute {}: {}", command, res.out);

0 commit comments

Comments
 (0)