Skip to content

Commit

Permalink
window-zoom: Track wlroots-0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
soreau committed Aug 27, 2024
1 parent 3d5dc67 commit 4adf621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/window-zoom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class wayfire_winzoom : public wf::per_output_plugin_instance_t
wf::axis_callback axis_cb = [=] (wlr_pointer_axis_event *ev)
{
auto view = toplevel_cast(wf::get_core().get_cursor_focus_view());
if (ev->orientation == WLR_AXIS_ORIENTATION_VERTICAL)
if (ev->orientation == WL_POINTER_AXIS_VERTICAL_SCROLL)
{
auto delta = (int)-std::clamp(ev->delta, -1.0, 1.0);
return update_winzoom(view, wf::point_t{delta, delta});
Expand Down

0 comments on commit 4adf621

Please sign in to comment.