+ // Although _NET_WORKAREA is supposed to return the client size of the
+ // screen, not all implementations are conforming, apparently, see #14419,
+ // so make sure we return a subset of the primary display.
+ wxRect rectFull;
+#if wxUSE_DISPLAY
+ ScreensInfo screens;
+ const ScreenInfo& info = screens[0];
+ rectFull = wxRect(info.x_org, info.y_org, info.width, info.height);
+#else
+ wxDisplaySize(&rectFull.width, &rectFull.height);
+#endif