Skip to content

Commit

Permalink
Merge pull request #12 from jpcima/gtkfix-standalone
Browse files Browse the repository at this point in the history
fix the display updates in standalone UI
  • Loading branch information
sampov2 authored Aug 24, 2018
2 parents 9ac7b7a + f8b1996 commit 5f39fc9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/foo-yc20-ui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ static gboolean yc20ui_motion_notify_event(GtkWidget *widget, GdkEventMotion *ev
{
YC20UI *ui = (YC20UI *)data;
ui->mouse_movement(event->x, event->y);
gtk_widget_queue_draw(widget);
return true;
}

Expand All @@ -82,13 +83,15 @@ static gboolean yc20ui_button_press_event(GtkWidget *widget, GdkEventButton *eve
YC20UI *ui = (YC20UI *)data;
ui->button_pressed(event->x, event->y);
}
gtk_widget_queue_draw(widget);
return true;
}

static gboolean yc20ui_button_release_event(GtkWidget *widget, GdkEventButton *event, gpointer data)
{
YC20UI *ui = (YC20UI *)data;
ui->button_released(event->x, event->y);
gtk_widget_queue_draw(widget);
return true;
}

Expand Down

0 comments on commit 5f39fc9

Please sign in to comment.