damianatorrpm / wayfire-plugin_dbus_interface

DBus Plugin for wayfire
MIT License
11 stars 6 forks source link

Fails to build with wlroots 0.16.0 #50

Open jbeich opened 1 year ago

jbeich commented 1 year ago

Regressed by wlroots@bd6c000d142f

dbus_interface.cpp:191:36: error: use of undeclared identifier 'wlr_event_pointer_button'; did you mean 'wlr_seat_pointer_enter'?
            wf::input_event_signal<wlr_event_pointer_button>* wf_ev;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
                                   wlr_seat_pointer_enter
/usr/local/include/wlr/types/wlr_seat.h:377:6: note: 'wlr_seat_pointer_enter' declared here
void wlr_seat_pointer_enter(struct wlr_seat *wlr_seat,
     ^
dbus_interface.cpp:191:36: error: template argument for template type parameter must be a type
            wf::input_event_signal<wlr_event_pointer_button>* wf_ev;
                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/wayfire/signal-definitions.hpp:106:16: note: template parameter is declared here
template<class wlr_event_t>
               ^
dbus_interface.cpp:192:13: error: unknown type name 'wlr_event_pointer_button'; did you mean 'wlr_seat_pointer_state'?
            wlr_event_pointer_button* wlr_signal;
            ^~~~~~~~~~~~~~~~~~~~~~~~
            wlr_seat_pointer_state
/usr/local/include/wlr/types/wlr_seat.h:174:8: note: 'wlr_seat_pointer_state' declared here
struct wlr_seat_pointer_state {
       ^
dbus_interface.cpp:199:52: error: use of undeclared identifier 'wlr_event_pointer_button'; did you mean 'wlr_seat_pointer_enter'?
                static_cast<wf::input_event_signal<wlr_event_pointer_button>*> (data);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
                                                   wlr_seat_pointer_enter
/usr/local/include/wlr/types/wlr_seat.h:377:6: note: 'wlr_seat_pointer_enter' declared here
void wlr_seat_pointer_enter(struct wlr_seat *wlr_seat,
     ^
dbus_interface.cpp:199:52: error: template argument for template type parameter must be a type
                static_cast<wf::input_event_signal<wlr_event_pointer_button>*> (data);
                                                   ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/wayfire/signal-definitions.hpp:106:16: note: template parameter is declared here
template<class wlr_event_t>
               ^
dbus_interface.cpp:200:38: error: unknown type name 'wlr_event_pointer_button'; did you mean 'wlr_seat_pointer_state'?
            wlr_signal = static_cast<wlr_event_pointer_button*> (wf_ev->event);
                                     ^~~~~~~~~~~~~~~~~~~~~~~~
                                     wlr_seat_pointer_state
/usr/local/include/wlr/types/wlr_seat.h:174:8: note: 'wlr_seat_pointer_state' declared here
struct wlr_seat_pointer_state {
       ^
dbus_interface.cpp:201:40: error: no member named 'state' in 'wlr_seat_pointer_state'
            button_state = wlr_signal->state;
                           ~~~~~~~~~~  ^
dbus_interface.cpp:202:34: error: no member named 'button' in 'wlr_seat_pointer_state'
            button = wlr_signal->button;
                     ~~~~~~~~~~  ^
soreau commented 1 year ago

@jbeich I don't think this repository is maintained any longer. You will most likely have to carry patches for it, if you want it to build. I know it's also broken in wayfire-plugins-extra. There it should be updated to a maintained repo or removed, I just haven't messed with it yet.

jbeich commented 1 year ago

Well, it's just one more patch in https://github.com/freebsd/freebsd-ports/tree/main/x11-wm/wayfire-plugins-extra/files