1
0
mirror of https://codeberg.org/vyivel/dulcepan/ synced 2025-03-15 04:09:15 +02:00

seat: only save due to quick-select when resizing ends

Moving a selection shouldn't trigger this.
This commit is contained in:
Kirill Primak 2025-03-08 23:23:18 +03:00
parent 8bc62fdae4
commit b9e94f9584

View File

@ -182,7 +182,8 @@ static void pointer_handle_button(void *data, struct wl_pointer *wl_pointer, uin
struct dp_selection *selection = &state->selection; struct dp_selection *selection = &state->selection;
if (button_state != WL_POINTER_BUTTON_STATE_PRESSED) { if (button_state != WL_POINTER_BUTTON_STATE_PRESSED) {
if (selection->width > 0 && selection->height > 0 && state->config.quick_select) { if (selection->action == DP_SELECTION_ACTION_RESIZING && selection->width > 0 &&
selection->height > 0 && state->config.quick_select) {
state->status = DP_STATUS_SAVED; state->status = DP_STATUS_SAVED;
} }
dp_select_stop_interactive(selection); dp_select_stop_interactive(selection);