aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/frame.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/frame.c b/src/frame.c
index f2262f3a216..cc971edefc9 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -1578,7 +1578,8 @@ and nil for X and Y. */)
1578 1578
1579#ifdef HAVE_MOUSE 1579#ifdef HAVE_MOUSE
1580 /* It's okay for the hook to refrain from storing anything. */ 1580 /* It's okay for the hook to refrain from storing anything. */
1581 if (mouse_position_hook) 1581 if (FRAME_TERMCAP_P (f)
1582 && mouse_position_hook)
1582 (*mouse_position_hook) (&f, -1, 1583 (*mouse_position_hook) (&f, -1,
1583 &lispy_dummy, &party_dummy, 1584 &lispy_dummy, &party_dummy,
1584 &x, &y, 1585 &x, &y,
@@ -1852,7 +1853,8 @@ doesn't support multiple overlapping frames, this function does nothing. */)
1852 /* Do like the documentation says. */ 1853 /* Do like the documentation says. */
1853 Fmake_frame_visible (frame); 1854 Fmake_frame_visible (frame);
1854 1855
1855 if (frame_raise_lower_hook) 1856 if (FRAME_TERMCAP_P (XFRAME (frame))
1857 && frame_raise_lower_hook)
1856 (*frame_raise_lower_hook) (XFRAME (frame), 1); 1858 (*frame_raise_lower_hook) (XFRAME (frame), 1);
1857 1859
1858 return Qnil; 1860 return Qnil;
@@ -1872,7 +1874,8 @@ doesn't support multiple overlapping frames, this function does nothing. */)
1872 1874
1873 CHECK_LIVE_FRAME (frame); 1875 CHECK_LIVE_FRAME (frame);
1874 1876
1875 if (frame_raise_lower_hook) 1877 if (FRAME_TERMCAP_P (XFRAME (frame))
1878 && frame_raise_lower_hook)
1876 (*frame_raise_lower_hook) (XFRAME (frame), 0); 1879 (*frame_raise_lower_hook) (XFRAME (frame), 0);
1877 1880
1878 return Qnil; 1881 return Qnil;
@@ -1917,7 +1920,8 @@ The redirection lasts until `redirect-frame-focus' is called to change it. */)
1917 1920
1918 XFRAME (frame)->focus_frame = focus_frame; 1921 XFRAME (frame)->focus_frame = focus_frame;
1919 1922
1920 if (!FRAME_TERMCAP_P (XFRAME (frame)) && frame_rehighlight_hook) 1923 if (!FRAME_TERMCAP_P (XFRAME (frame))
1924 && frame_rehighlight_hook)
1921 (*frame_rehighlight_hook) (XFRAME (frame)); 1925 (*frame_rehighlight_hook) (XFRAME (frame));
1922 1926
1923 return Qnil; 1927 return Qnil;