popover: Add a missing #ifdef

This commit is contained in:
Ting-Wei Lan 2014-12-24 21:59:49 +08:00
parent d216d89d6f
commit 2c6ac1fa3e

View File

@ -822,11 +822,14 @@ gtk_popover_update_position (GtkPopover *popover)
overshoot[GTK_POS_LEFT] = req.width - rect.x;
overshoot[GTK_POS_RIGHT] = rect.x + rect.width + req.width - window_alloc.width;
#ifdef GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
{
priv->final_position = priv->preferred_position;
}
else if (overshoot[pos] <= 0)
else
#endif
if (overshoot[pos] <= 0)
{
priv->final_position = priv->preferred_position;
}