GNOME Bugzilla – Bug 777527
GDK W32: Invisible drop-down menus in GTK apps when working via RDP
Last modified: 2018-01-17 20:43:13 UTC
Drop-down menus are not shown (seem to have zero or negative dimensions) when a GTK application is running on a Windows desktop that is being accessed via RDP. Also, many critical warnings are logged.
Created attachment 343890 [details] [review] GDK W32: Ensure that we use made-up monitors when there are none Previously GDK only made up monitors when it initially found none. Now it also makes up monitors when it initially finds some, but later fails to get their informatin in a normal way and finally prunes them out, being left with zero monitors. Having zero-length monitor array is unexpected and causes a number of critical warnings and some critical functionality (such as displaying drop-down menus) fails in such cases. Ideally, there might be such a way to interrogate W32 API that produces the information about non-real (but active) monitors out of it so that it isn't necessary for us to make stuff up. However, this code is already complicated, and i am not prepared to dig W32 API to find a way to do this. This fixes the issues people had when they accessed a Windows desktop via RDP.
Downstream instance: https://github.com/Alexpux/MINGW-packages/issues/2104 (I cannot easily and quickly test this myself right now)
Review of attachment 343890 [details] [review]: Fine for me
Comment on attachment 343890 [details] [review] GDK W32: Ensure that we use made-up monitors when there are none Pushed attachment 343890 [details] [review] into branch gtk-3-22 as commit 4a5cd127ff7199480002e7d02698bee0333cf5d6
*** Bug 778892 has been marked as a duplicate of this bug. ***
Created attachment 364140 [details] [review] fix for multiple physical monitors attached The prune_monitors function does not work for me. Have two physical monitors attached to the system. reverse the for loop removes all of them instead of only one. Thanks.
Created attachment 364142 [details] [review] fix for multiple monitors attached sorry, previous attachment should have had a '>' not a '<' also not sure how to reopen this bug?
Pushed commit 30ddb3e into the gtk-3-22 branch. Does that work for you?
*** Bug 792615 has been marked as a duplicate of this bug. ***