Skip to content

Commit

Permalink
sni: fix passing relative coordinates to dbus methods
Browse files Browse the repository at this point in the history
Fixes passing relative coordinates to ContextMenu, Activate, SecondaryActivate DBus methods, while handling mouse click events.
  • Loading branch information
29800876+Cherser-s@users.noreply.github.com committed Aug 16, 2023
1 parent 0a28b50 commit 1257f14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/sni/item.cpp
Expand Up @@ -410,7 +410,7 @@ void Item::makeMenu() {

bool Item::handleClick(GdkEventButton* const& ev) {
auto parameters = Glib::VariantContainerBase::create_tuple(
{Glib::Variant<int>::create(ev->x), Glib::Variant<int>::create(ev->y)});
{Glib::Variant<int>::create(ev->x_root), Glib::Variant<int>::create(ev->y_root)});
if ((ev->button == 1 && item_is_menu) || ev->button == 3) {
makeMenu();
if (gtk_menu != nullptr) {
Expand Down

0 comments on commit 1257f14

Please sign in to comment.