summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2021-01-10 22:35:02 +0100
committerPhilipp Stephani <phst@google.com>2021-01-10 22:35:02 +0100
commit45abd52f3c870ab4ee05fddfc4896d2444594c3d (patch)
tree28da9cd8ee01f5d3a9ea8012c61e2d306431f914 /src
parent94344d130c2c2db90bcc47e12870d1d58f020ecf (diff)
downloademacs-45abd52f3c870ab4ee05fddfc4896d2444594c3d.tar.gz
Fix build breakage if Lisp_Object is not a primitive type.
* src/minibuf.c (choose_minibuf_frame): Don't compare Lisp_Objects with '!='. Use 'EQ' instead.
Diffstat (limited to 'src')
-rw-r--r--src/minibuf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/minibuf.c b/src/minibuf.c
index c527e2bc9c6..868e481f843 100644
--- a/src/minibuf.c
+++ b/src/minibuf.c
@@ -141,8 +141,8 @@ choose_minibuf_frame (void)
if (!EQ (frame, selected_frame)
&& minibuf_level > 1
/* The frame's minibuffer can be on a different frame. */
- && XWINDOW ((of = XFRAME (frame))->minibuffer_window)->frame
- != selected_frame)
+ && ! EQ (XWINDOW ((of = XFRAME (frame))->minibuffer_window)->frame,
+ selected_frame))
{
if (MINI_WINDOW_P (XWINDOW (FRAME_SELECTED_WINDOW (of))))
Fset_frame_selected_window (frame, Fframe_first_window (frame),