diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index cede4c2b..06002bcf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -338,11 +338,6 @@ if(BUILD_INTEL_BACKLIGHT) set(optional_sources ${optional_sources} ${intel_backlight}) endif(BUILD_INTEL_BACKLIGHT) -if(BUILD_MOUSE_EVENTS) - set(mouse_events mouse-events.cc mouse-events.h) - set(optional_sources ${optional_sources} ${mouse_events}) -endif(BUILD_MOUSE_EVENTS) - if(BUILD_TESTS) # Create a library strictly for testing add_library(conky_core ${conky_sources} ${optional_sources}) diff --git a/src/display-wayland.cc b/src/display-wayland.cc index 7084fc62..233f98b3 100644 --- a/src/display-wayland.cc +++ b/src/display-wayland.cc @@ -485,7 +485,7 @@ static void on_pointer_motion(void *data, size_t x = static_cast(wl_fixed_to_double(surface_x)); size_t y = static_cast(wl_fixed_to_double(surface_y)); - last_known_positions[pointer] = {x, y}; + last_known_positions[pointer] = std::array {x, y}; size_t abs_x = w->rectangle.x + x; size_t abs_y = w->rectangle.y + y;