emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug in incremental undrawing of mouseover highlighting


From: Eli Zaretskii
Subject: Re: Bug in incremental undrawing of mouseover highlighting
Date: Mon, 20 Nov 2006 22:36:22 +0200

> From: Chong Yidong <address@hidden>
> Date: Mon, 20 Nov 2006 14:22:47 -0500
> Cc: address@hidden
> 
> *** emacs/src/window.c.~1.564.~       2006-10-30 09:06:42.000000000 -0500
> --- emacs/src/window.c        2006-11-20 14:13:08.000000000 -0500
> ***************
> *** 3265,3270 ****
> --- 3265,3275 ----
>     struct window *w = XWINDOW (window);
>     struct buffer *b = XBUFFER (buffer);
>     int count = SPECPDL_INDEX ();
> + #ifdef HAVE_WINDOW_SYSTEM
> +   struct frame *f = XFRAME (w->frame);
> +   Display_Info *dpyinfo = (f && FRAME_X_OUTPUT (f)) ?
> +     FRAME_X_DISPLAY_INFO (f) : NULL;
> + #endif
>   
>     w->buffer = buffer;
>   
> ***************
> *** 3345,3350 ****
> --- 3350,3360 ----
>       call1 (Vrun_hooks, Qwindow_configuration_change_hook);
>       }
>   
> + #ifdef HAVE_WINDOW_SYSTEM
> +   if (dpyinfo && EQ (window, dpyinfo->mouse_face_window))
> +     clear_mouse_face (dpyinfo);
> + #endif
> + 
>     unbind_to (count, Qnil);
>   }

Are these #ifdef's really right?  The mouse highlight is supported not
only in builds that define HAVE_WINDOW_SYSTEM.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]