Skip to content

Commit

Permalink
Merge pull request #259 from WayfireWM/track-wlroots-0.18
Browse files Browse the repository at this point in the history
Track wlroots 0.18
  • Loading branch information
soreau authored Dec 18, 2024
2 parents 3d5dc67 + b211e0f commit 96bd690
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 12 deletions.
3 changes: 0 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[submodule "subprojects/windecor"]
path = subprojects/windecor
url = https://gitlab.com/wayfireplugins/windecor.git
[submodule "subprojects/wayfire-shadows"]
path = subprojects/wayfire-shadows
url = https://github.com/timgott/wayfire-shadows.git
Expand Down
2 changes: 1 addition & 1 deletion src/annotate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class wayfire_annotate_screen : public wf::per_output_plugin_instance_t, public

void handle_pointer_button(const wlr_pointer_button_event& event) override
{
if ((event.button == button) && (event.state == WLR_BUTTON_RELEASED))
if ((event.button == button) && (event.state == WL_POINTER_BUTTON_STATE_RELEASED))
{
draw_end();
}
Expand Down
4 changes: 2 additions & 2 deletions src/focus-steal-prevent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,14 @@ class wayfire_focus_steal_prevent : public wf::per_output_plugin_instance_t
wf::signal::connection_t<wf::input_event_signal<wlr_pointer_button_event>> on_button_event =
[=] (wf::input_event_signal<wlr_pointer_button_event> *ev)
{
if ((ev->event->state == WLR_BUTTON_RELEASED) || !prevent_focus_steal)
if ((ev->event->state == WL_POINTER_BUTTON_STATE_RELEASED) || !prevent_focus_steal)
{
return;
}

auto view = wf::get_core().get_cursor_focus_view();
if ((!view || (view && (view->role == wf::VIEW_ROLE_DESKTOP_ENVIRONMENT))) &&
(ev->event->state == WLR_BUTTON_PRESSED) && prevent_focus_steal)
(ev->event->state == WL_POINTER_BUTTON_STATE_PRESSED) && prevent_focus_steal)
{
cancel();
return;
Expand Down
2 changes: 1 addition & 1 deletion src/water.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class wayfire_water_screen : public wf::per_output_plugin_instance_t, public wf:

void handle_pointer_button(const wlr_pointer_button_event& event) override
{
if (event.state == WLR_BUTTON_RELEASED)
if (event.state == WL_POINTER_BUTTON_STATE_RELEASED)
{
output->deactivate_plugin(&grab_interface);
timer.set_timeout(5000, timeout);
Expand Down
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
2 changes: 1 addition & 1 deletion subprojects/pixdecor
2 changes: 1 addition & 1 deletion subprojects/wayfire-shadows
Submodule wayfire-shadows updated 1 files
+0 −2 meson.build
1 change: 0 additions & 1 deletion subprojects/windecor
Submodule windecor deleted from 3e2f2a

0 comments on commit 96bd690

Please sign in to comment.