X-Git-Url: https://git.cworth.org/git?p=dvonn;a=blobdiff_plain;f=dvonn.c;fp=dvonn.c;h=94146ce00c19df6418791f4910b14ece75e3512a;hp=8ac72b1cdd40f4efdd97de2d968a0c40812783bd;hb=c1c2fe84387af8e7d9fdea36fedc4482b48027c1;hpb=74df2492e8c32df37d886dec4baf9344dc6b8cff diff --git a/dvonn.c b/dvonn.c index 8ac72b1..94146ce 100644 --- a/dvonn.c +++ b/dvonn.c @@ -161,6 +161,13 @@ on_button_press_event (GtkWidget *widget, if (event->type >= GDK_2BUTTON_PRESS) return TRUE; + /* Right-click means pass, (yes, it would be better to add some + * actual UI elements... */ + if (event->button == 3) { + dvonn_board_pass (&game->board); + return TRUE; + } + x = event->x; y = event->y; layout_device_to_board (layout, &x, &y);