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:
parent
b1b7ae8b2c
commit
b4fa9b8ad9
@ -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})
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user