1
0
mirror of https://codeberg.org/vyivel/dulcepan/ synced 2025-12-23 02:06:48 +02:00

More scale changes :3

Surely this has no bugs in it
This commit is contained in:
Kirill Primak
2024-06-28 20:35:44 +03:00
parent 8794cbdeb2
commit bc97934371
6 changed files with 82 additions and 77 deletions

View File

@@ -92,7 +92,7 @@ struct dp_seat {
// The output the pointer is on
struct dp_output *ptr_output;
// In buffer space
int ptr_x, ptr_y;
double ptr_x, ptr_y;
struct wl_list link;
};
@@ -114,15 +114,15 @@ enum dp_resize_edges {
struct dp_selection {
struct dp_output *output; // May be NULL
int x, y, width, height;
double x, y, width, height;
enum dp_selection_action action;
bool action_active;
// Pointer offset to apply during movement
int ptr_off_x, ptr_off_y;
double ptr_off_x, ptr_off_y;
int resize_edges;
// Resize anchor
int resize_x, resize_y;
double resize_x, resize_y;
};
enum dp_file_format {
@@ -213,12 +213,12 @@ void dp_output_hide_surface(struct dp_output *output);
void dp_seat_create(struct dp_state *state, uint32_t name, struct wl_seat *wl_seat);
void dp_seat_destroy(struct dp_seat *seat);
void dp_select_start_interactive(struct dp_selection *selection, struct dp_output *output, int x,
int y, bool modify_existing);
void dp_select_start_interactive(struct dp_selection *selection, struct dp_output *output, double x,
double y, bool modify_existing);
void dp_select_stop_interactive(struct dp_selection *selection);
void dp_select_notify_pointer_position(
struct dp_selection *selection, struct dp_output *output, int x, int y);
struct dp_selection *selection, struct dp_output *output, double x, double y);
void dp_select_whole(struct dp_selection *selection, struct dp_output *output);