- if (get_boolean_resource (dpy, "fpsTop", "FPSTop"))
- /* don't leave a blank line in GL top-fps. */
- st->y = - (/*st->font->ascent +*/ st->font->descent + 10);
+ if (top_p)
+ st->y = - (st->font->ascent + st->font->descent + 10);
+
+# ifdef USE_IPHONE
+ /* Don't hide the FPS display under the iPhone X bezel.
+ #### This is the worst of all possible ways to do this! But how else?
+ */
+ if (xgwa.width == 2436 || xgwa.height == 2436)
+ {
+ st->x += 48;
+ st->y += 48 * (top_p ? -1 : 1);
+ }
+# endif