GtkRequisition req;
struct frame *f = user_data;
gtk_widget_get_preferred_size (w, NULL, &req);
+ req.height *= xg_get_scale (f);
if (FRAME_MENUBAR_HEIGHT (f) != req.height)
{
FRAME_MENUBAR_HEIGHT (f) = req.height;
g_signal_connect (x->menubar_widget, "map", G_CALLBACK (menubar_map_cb), f);
gtk_widget_show_all (x->menubar_widget);
gtk_widget_get_preferred_size (x->menubar_widget, NULL, &req);
-
+ req.height *= xg_get_scale (f);
if (FRAME_MENUBAR_HEIGHT (f) != req.height)
{
FRAME_MENUBAR_HEIGHT (f) = req.height;
list = gtk_container_get_children (GTK_CONTAINER (x->menubar_widget));
if (! list) return 0;
- rec.x = event->xbutton.x;
- rec.y = event->xbutton.y;
+ int scale = xg_get_scale (f);
+ rec.x = event->xbutton.x / scale;
+ rec.y = event->xbutton.y / scale;
rec.width = 1;
rec.height = 1;