aboutsummaryrefslogtreecommitdiffstats
path: root/src/xmenu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index b4a1a87d4d9..6317c126286 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -2710,10 +2710,8 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
2710 2710
2711 /* All set and ready to fly. */ 2711 /* All set and ready to fly. */
2712 XMenuRecompute (FRAME_X_DISPLAY (f), menu); 2712 XMenuRecompute (FRAME_X_DISPLAY (f), menu);
2713 dispwidth = DisplayWidth (FRAME_X_DISPLAY (f), 2713 dispwidth = DisplayWidth (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f));
2714 XScreenNumberOfScreen (FRAME_X_SCREEN (f))); 2714 dispheight = DisplayHeight (FRAME_X_DISPLAY (f), FRAME_X_SCREEN_NUMBER (f));
2715 dispheight = DisplayHeight (FRAME_X_DISPLAY (f),
2716 XScreenNumberOfScreen (FRAME_X_SCREEN (f)));
2717 x = min (x, dispwidth); 2715 x = min (x, dispwidth);
2718 y = min (y, dispheight); 2716 y = min (y, dispheight);
2719 x = max (x, 1); 2717 x = max (x, 1);