Xpra: Ticket #698: gtk is confused about some win32 screen settings

It reports 42 bits per pixel on my screen.

As can be seen here in the gdk visual for win32 source (dead link - thanks gnome!)


It says:

    g_error ("_gdk_visual_init: unsupported BITSPIXEL: %d\n", bitspixel);
  system_visual->depth = bitspixel;
  system_visual->byte_order = GDK_LSB_FIRST;
  system_visual->bits_per_rgb = 42; /* Not used? */

Now, I don't see the warning at all... but at least it doesn't crash. We don't use the bits_per_rgb value for anything either, not yet anyway. But we should fix this before something bad happens.

For the record, on my system:

No idea why we end up in the codepath that sets it to 42...

Tue, 30 Sep 2014 02:22:51 GMT - Antoine Martin: owner, status changed; milestone set

Note: GTK3 is also affected..

Not the first time that GTK gets confused about pixel depth either: #654.

Tue, 12 Jul 2016 16:51:50 GMT - Antoine Martin: milestone changed

Milestone renamed

Sun, 21 Aug 2016 09:55:49 GMT - Antoine Martin: milestone changed

Milestone renamed

Mon, 23 Jan 2017 09:53:05 GMT - Antoine Martin: status, description changed; resolution set

Can no longer reproduce.

Sat, 23 Jan 2021 05:03:19 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/698