ComboBox: List-mode popup must open on CB’s screen
authorDaniel Boles <dboles@src.gnome.org>
Sun, 27 Aug 2017 20:29:52 +0000 (21:29 +0100)
committerDaniel Boles <dboles@src.gnome.org>
Mon, 28 Aug 2017 18:33:54 +0000 (19:33 +0100)
commit70534de382c827f690f1673a0b6710eff5dcfdf5
tree8a48c556e65d973d7eb880d8fbc56301d89b4843
parent3b1e4031df6d07666d741d98a3491b8bf09e4fda
ComboBox: List-mode popup must open on CB’s screen

The screen for the list-mode popup_window was only being set in
set_popup_widget(), i.e. when changing modes, so if the ComboBox was
moved to a different screen later, the popup would appear on the
original one, which is wrong.

Worse, this (somehow) broke opening some combos in the Inspector.

Fix this by moving the call to set_screen() to popup_for_device(), so
the popup_window is put on the correct screen each time around.

https://bugzilla.gnome.org/show_bug.cgi?id=468868
https://bugzilla.gnome.org/show_bug.cgi?id=786771
gtk/gtkcombobox.c