martin rudalics writes: >> extra = FRAME_NS_TITLEBAR_HEIGHT (emacsframe) >> + FRAME_TOOLBAR_HEIGHT (emacsframe); > > Ahh, so this is Emacs 25. Strange. Rainer what do > > p emacsframe->output_data.ns->titlebar_height > > and > > p emacsframe->output_data.ns->toolbar_height > > give in frame#0 of the debugger? Here is the output: ,---- | (gdb) frame 0 | #0 0x0000000100347ccc in -[EmacsView updateFrameSize:] (self=0x10106e9b0, _cmd=0x1003ea975, delay=1 '\001') at nsterm.m:5970 | 5970 extra = FRAME_NS_TITLEBAR_HEIGHT (emacsframe) | (gdb) p emacsframe->output_data.ns->titlebar_height | [New Thread 0x183b of process 77890] | [New Thread 0x1727 of process 77890] | [New Thread 0x1b3f of process 77890] | [New Thread 0x2013 of process 77890] | [New Thread 0x2203 of process 77890] | Cannot access memory at address 0x13d8001003fc183 | (gdb) p emacsframe->output_data.ns->toolbar_height | [New Thread 0x2117 of process 77890] | Cannot access memory at address 0x13d8001003fc183 | (gdb) `---- Hope this helps Rainer > > martin -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Stellenbosch University South Africa Tel : +33 - (0)9 53 10 27 44 Cell: +33 - (0)6 85 62 59 98 Fax : +33 - (0)9 58 10 27 44 Fax (D): +49 - (0)3 21 21 25 22 44 email: Rainer@krugs.de Skype: RMkrug PGP: 0x0F52F982