mirror of
https://github.com/rad4day/Waybar.git
synced 2025-07-13 22:52:30 +02:00
fix click special
This commit is contained in:
@ -1001,6 +1001,7 @@ std::string &Workspace::selectIcon(std::map<std::string, std::string> &icons_map
|
|||||||
}
|
}
|
||||||
|
|
||||||
bool Workspace::handleClicked(GdkEventButton *bt) const {
|
bool Workspace::handleClicked(GdkEventButton *bt) const {
|
||||||
|
if (bt->type == GDK_BUTTON_PRESS) {
|
||||||
try {
|
try {
|
||||||
if (id() > 0) { // normal
|
if (id() > 0) { // normal
|
||||||
gIPC->getSocket1Reply("dispatch workspace " + std::to_string(id()));
|
gIPC->getSocket1Reply("dispatch workspace " + std::to_string(id()));
|
||||||
@ -1015,6 +1016,7 @@ bool Workspace::handleClicked(GdkEventButton *bt) const {
|
|||||||
} catch (const std::exception &e) {
|
} catch (const std::exception &e) {
|
||||||
spdlog::error("Failed to dispatch workspace: {}", e.what());
|
spdlog::error("Failed to dispatch workspace: {}", e.what());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user