mirror of
https://github.com/artizirk/wdisplays.git
synced 2026-10-03 12:55:42 +03:00
Apply automatic changes when a drag ends
This commit is contained in:
+6
-1
@@ -371,7 +371,9 @@ static void show_apply(struct wd_state *state) {
|
||||
const gchar *page = "title";
|
||||
if (has_changes(state)) {
|
||||
if (state->autoapply) {
|
||||
apply_state(state, false);
|
||||
if (state->clicked == NULL) {
|
||||
apply_state(state, false);
|
||||
}
|
||||
} else {
|
||||
page = "apply";
|
||||
}
|
||||
@@ -817,6 +819,9 @@ static void canvas_drag1_end(GtkGestureDrag *drag,
|
||||
struct wd_state *state = data;
|
||||
set_clicked_head(state, NULL);
|
||||
update_cursor(state);
|
||||
if (state->autoapply) {
|
||||
show_apply(state);
|
||||
}
|
||||
}
|
||||
|
||||
static void canvas_drag2_begin(GtkGestureDrag *drag,
|
||||
|
||||
Reference in New Issue
Block a user