forked from Miroirs/x49gp
don't use ui->lcd_canvas to open popup menu
This commit is contained in:
parent
e6b9ff86db
commit
cb8574f7d8
1 changed files with 2 additions and 2 deletions
|
@ -1452,7 +1452,7 @@ static gboolean react_to_key_event( GtkWidget* widget, GdkEventKey* event, gpoin
|
||||||
if ( ui->menu_debug )
|
if ( ui->menu_debug )
|
||||||
gtk_widget_set_sensitive( ui->menu_debug, !gdbserver_isactive() );
|
gtk_widget_set_sensitive( ui->menu_debug, !gdbserver_isactive() );
|
||||||
|
|
||||||
gtk_menu_popup_at_widget( GTK_MENU( ui->menu ), ui->lcd_canvas, GDK_GRAVITY_NORTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL );
|
gtk_menu_popup_at_widget( GTK_MENU( ui->menu ), ui->window, GDK_GRAVITY_NORTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL );
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -1544,7 +1544,7 @@ static gboolean react_to_window_click( GtkWidget* widget, GdkEventButton* event,
|
||||||
fprintf( stderr, "clipboard: %s\n", text );
|
fprintf( stderr, "clipboard: %s\n", text );
|
||||||
break;
|
break;
|
||||||
case 3: // right click
|
case 3: // right click
|
||||||
gtk_menu_popup_at_widget( GTK_MENU( ui->menu ), ui->lcd_canvas, GDK_GRAVITY_NORTH_WEST, GDK_GRAVITY_NORTH_WEST, NULL );
|
gtk_menu_popup_at_pointer( GTK_MENU( ui->menu ), NULL );
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue