Skip to content

Search box wrong position

The search box is positioned incorrectly on my multi-monitor configuration.

Example monitor configuration:

Captura_de_pantalla_2025-06-06_23-13-45

On the Dell monitor (left) it is positioned correctly, on the Samsung monitor (right) it is positioned incorrectly.

Example of incorrect position:

Captura_de_pantalla_2025-06-06_22-53-04

Therefore, it is positioned incorrectly if the right monitor is not vertically aligned with the left monitor.

The bug is in the file xfce-gtk-extensions.c / exo-gtk-extensions.c, in the function xfce_gtk_position_search_box / exo_gtk_position_search_box.

In these lines:

      if (y + requisition.height > monitor_dimensions.height)
        y = monitor_dimensions.height - requisition.height;

I tried to fix it and now it positions correctly:

      if (y + requisition.height > monitor_dimensions.y + monitor_dimensions.height)
        y = monitor_dimensions.y + monitor_dimensions.height - requisition.height;

NOTE: This bug is present in libxfce4ui and exo.