Commit 08c1d235 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(freeze_window_start): Don't presume selected_window holds a window object.

parent 629c715d
2007-09-07 Stefan Monnier <monnier@iro.umontreal.ca>
* frame.c (x_set_frame_parameters): Check number is positive before
using XFASTINT.
* window.c (freeze_window_start): Don't presume selected_window holds
a window object.
2007-09-07 Angelo Graziosi <Angelo.Graziosi@roma1.infn.it> (tiny change)
 
* term.c (dissociate_if_controlling_tty): Call setsid on CYGWIN.
......@@ -7111,11 +7111,12 @@ freeze_window_start (w, freeze_p)
struct window *w;
void *freeze_p;
{
if (w == XWINDOW (selected_window)
|| MINI_WINDOW_P (w)
|| (MINI_WINDOW_P (XWINDOW (selected_window))
&& ! NILP (Vminibuf_scroll_window)
&& w == XWINDOW (Vminibuf_scroll_window)))
if (MINI_WINDOW_P (w)
|| (WINDOWP (selected_window) /* Can be nil in corner cases. */
&& (w == XWINDOW (selected_window)
|| (MINI_WINDOW_P (XWINDOW (selected_window))
&& ! NILP (Vminibuf_scroll_window)
&& w == XWINDOW (Vminibuf_scroll_window)))))
freeze_p = NULL;
w->frozen_window_start_p = freeze_p != NULL;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment