popover: Fix typo
authorBenjamin Otte <otte@redhat.com>
Sat, 25 Mar 2023 23:43:58 +0000 (00:43 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Mar 2023 00:02:17 +0000 (01:02 +0100)
The typo causs gnome-shell to crah, which is somewhat suboptimal.

It was introduced in 1a9c7a4b1fb.

gtk/gtkpopover.c

index ff2e12cd8746f65eef452be441b1ea16411a4610..9aafd1e69886432fec6f22f69a6edacc69eab1e1 100644 (file)
@@ -468,7 +468,7 @@ compute_surface_pointing_to (GtkPopover   *popover,
   rect->x = (int) floor (bounds.origin.x + nx);
   rect->y = (int) floor (bounds.origin.y + ny);
   rect->width = (int) ceilf (bounds.size.width);
-  rect->width = (int) ceilf (bounds.size.height);
+  rect->height = (int) ceilf (bounds.size.height);
 }
 
 static GdkPopupLayout *