1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-25 12:10:03 +00:00

Remove duplicate BUILD_MOUSE_EVENTS includes (again)

Signed-off-by: Tin <tin.svagelj@live.com>
This commit is contained in:
Tin 2023-11-08 03:47:48 +01:00 committed by Brenden Matthews
parent b1b7ae8b2c
commit b4fa9b8ad9
No known key found for this signature in database
GPG Key ID: 137B7AC2BDFD8DF0
2 changed files with 1 additions and 6 deletions

View File

@ -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})

View File

@ -485,7 +485,7 @@ static void on_pointer_motion(void *data,
size_t x = static_cast<size_t>(wl_fixed_to_double(surface_x));
size_t y = static_cast<size_t>(wl_fixed_to_double(surface_y));
last_known_positions[pointer] = {x, y};
last_known_positions[pointer] = std::array<size_t, 2> {x, y};
size_t abs_x = w->rectangle.x + x;
size_t abs_y = w->rectangle.y + y;