处理移动鼠标事件

This commit is contained in:
2025-08-24 04:04:39 +08:00
parent 8ffa546152
commit 25ef44e5f9
5 changed files with 67 additions and 3 deletions

View File

@@ -5,6 +5,8 @@
#include <stdint.h>
#include <sys/time.h>
#include "types.h"
#define LENGTH(X) (sizeof(X) / sizeof(X)[0])
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
@@ -40,3 +42,6 @@ uint32_t rgba_to_argb(uint32_t rgba);
*/
void extract_color_channel(const uint32_t rgba, double *red, double *green,
double *blue, double *alpha);
monitor_t *rect_to_monitor(monitor_t *monitors, int32_t x, int32_t y,
uint32_t width, uint32_t height);