summaryrefslogtreecommitdiff
path: root/src/frame.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2013-12-07 21:59:27 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2013-12-07 21:59:27 -0800
commit95b3d095f8791c9d0a2007f43fa4731401c64c87 (patch)
tree34fac70f7db4a9b31332754195a13e90bc870e63 /src/frame.h
parent00a2b823737fb91e452de71df004950e11994513 (diff)
* frame.h (SET_FRAME_VISIBLE): Now an inline function.
The macro didn't conform to C99 due to type mismatch, which caused compilation failure with Sun C 5.12, and it was confusing anyway. Include window.h to declare redisplay_other_windows.
Diffstat (limited to 'src/frame.h')
-rw-r--r--src/frame.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/frame.h b/src/frame.h
index 8369cf6b17..0f6a674dc0 100644
--- a/src/frame.h
+++ b/src/frame.h
@@ -25,6 +25,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
#include "dispextern.h"
#include "termhooks.h"
+#include "window.h"
INLINE_HEADER_BEGIN
@@ -956,10 +957,14 @@ default_pixels_per_inch_y (void)
if some changes were applied to it while it wasn't visible (and hence
wasn't redisplayed). */
-#define SET_FRAME_VISIBLE(f, v) \
- (((f)->visible == 0 || ((f)->visible == 2)) && ((v) == 1) \
- ? redisplay_other_windows () : 0, \
- (f)->visible = (eassert (0 <= (v) && (v) <= 2), (v)))
+INLINE void
+SET_FRAME_VISIBLE (struct frame *f, int v)
+{
+ eassert (0 <= v && v <= 2);
+ if (v == 1 && f->visible != 1)
+ redisplay_other_windows ();
+ f->visible = v;
+}
/* Set iconify of frame F. */