GtkComboBox with GTK+ and Wayland does not work properly with appears-as-list set
With a GtkComboBox and GTK+ (3.24.38) under Wayland, and with appears-as-list
set, the popup/dropdown does not appear on my second monitor. This second monitor is on the right.
I believe this is caused by the usage of gdk_monitor_get_workarea
in gtkcombobox.c
. The reasoning is similar to #699. This problem is the direct cause for https://gitlab.com/inkscape/inkscape/-/issues/2631.
The gtk3-demo
can be used to reproduce this. Start it with GTK_DEBUG=interactive gtk3-demo
. Then add custom CSS
combobox {
-GtkComboBox-appears-as-list: true;
}
Running the Combo Boxes demo then shows that the popup/dropdown will not appear on my second (rightside) monitor. Note that this is fixed (as well as for the inkscape issue) if run with GDK_BACKEND=x11
.
It feels like #683 (closed) was closed prematurely, as I think both this issue and #699 are in essence a result of the usage of gdk_monitor_get_workarea
.