Commit abeafb2a authored by Jan Djärv's avatar Jan Djärv
Browse files

frame.c (frame_make_pointer_invisible)

(frame_make_pointer_visible): Declare f before statements.
parent 21f49db9
2009-11-29 Jan Djärv <jan.h.d@swipnet.se>
* frame.c (frame_make_pointer_invisible)
(frame_make_pointer_visible): Declare f before statements.
2009-11-28 Eli Zaretskii <eliz@gnu.org>
 
* Makefile.in [!AUTO_DEPEND]: Remove outdated comment about
......
......@@ -4377,10 +4377,11 @@ frame_make_pointer_invisible ()
{
if (! NILP (Vmake_pointer_invisible))
{
struct frame *f;
if (!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame)))
return;
struct frame *f = SELECTED_FRAME ();
f = SELECTED_FRAME ();
if (f && !f->pointer_invisible
&& FRAME_TERMINAL (f)->toggle_invisible_pointer_hook)
{
......@@ -4396,11 +4397,12 @@ frame_make_pointer_visible ()
{
/* We don't check Vmake_pointer_invisible here in case the
pointer was invisible when Vmake_pointer_invisible was set to nil. */
struct frame *f;
if (!FRAMEP (selected_frame) || !FRAME_LIVE_P (XFRAME (selected_frame)))
return;
struct frame *f = SELECTED_FRAME ();
f = SELECTED_FRAME ();
if (f && f->pointer_invisible && f->mouse_moved
&& FRAME_TERMINAL (f)->toggle_invisible_pointer_hook)
{
......
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