all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#26643: 26.0.50; not able to resize frame on OS X
@ 2017-04-24 19:11 Charles A. Roelli
  2017-04-24 20:07 ` Charles A. Roelli
  0 siblings, 1 reply; 4+ messages in thread
From: Charles A. Roelli @ 2017-04-24 19:11 UTC (permalink / raw)
  To: 26643

With a recent build of Emacs, if you try to resize a frame in OS X 10.6 
by dragging the bottom-right corner of the frame, the frame does not 
change size, and stderr says:

bash-3.2$ nextstep/Emacs.app/Contents/MacOS/Emacs -Q
2017-04-24 21:02:46.195 Emacs[45285:903] -[EmacsWindow titleVisibility]: 
unrecognized selector sent to instance 0x101aa1990






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26643: 26.0.50; not able to resize frame on OS X
  2017-04-24 19:11 bug#26643: 26.0.50; not able to resize frame on OS X Charles A. Roelli
@ 2017-04-24 20:07 ` Charles A. Roelli
  2017-04-24 22:05   ` Alan Third
  0 siblings, 1 reply; 4+ messages in thread
From: Charles A. Roelli @ 2017-04-24 20:07 UTC (permalink / raw)
  To: 26643

On 24/04/2017 21:11, Charles A. Roelli wrote:
> With a recent build of Emacs, if you try to resize a frame in OS X 10.6
> by dragging the bottom-right corner of the frame, the frame does not
> change size, and stderr says:
>
> bash-3.2$ nextstep/Emacs.app/Contents/MacOS/Emacs -Q
> 2017-04-24 21:02:46.195 Emacs[45285:903] -[EmacsWindow titleVisibility]:
> unrecognized selector sent to instance 0x101aa1990

This seems to fix it:

--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6646,8 +6646,7 @@ - (NSSize)windowWillResize: (NSWindow *)sender 
toSize: (NSSize)frameSize
              old_title = 0;
            }
        }
-    else if (fs_state == FULLSCREEN_NONE && ! maximizing_resize
-             && [[self window] titleVisibility])
+    else if (fs_state == FULLSCREEN_NONE && ! maximizing_resize)
        {
          char *size_title;
          NSWindow *window = [self window];

With the titleVisibility call, the compiler gives this warning:

nsterm.m: In function ‘-[EmacsView windowWillResize:toSize:]’:
nsterm.m:6650: warning: ‘NSWindow’ may not respond to ‘-titleVisibility’
nsterm.m:6650: warning: (Messages without a matching method signature
nsterm.m:6650: warning: will be assumed to return ‘id’ and accept
nsterm.m:6650: warning: ‘...’ as arguments.)






^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26643: 26.0.50; not able to resize frame on OS X
  2017-04-24 20:07 ` Charles A. Roelli
@ 2017-04-24 22:05   ` Alan Third
  2017-04-25 19:05     ` Charles A. Roelli
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Third @ 2017-04-24 22:05 UTC (permalink / raw)
  To: Charles A. Roelli; +Cc: 26643

On Mon, Apr 24, 2017 at 10:07:07PM +0200, Charles A. Roelli wrote:
> On 24/04/2017 21:11, Charles A. Roelli wrote:
> > With a recent build of Emacs, if you try to resize a frame in OS X 10.6
> > by dragging the bottom-right corner of the frame, the frame does not
> > change size, and stderr says:
> > 
> > bash-3.2$ nextstep/Emacs.app/Contents/MacOS/Emacs -Q
> > 2017-04-24 21:02:46.195 Emacs[45285:903] -[EmacsWindow titleVisibility]:
> > unrecognized selector sent to instance 0x101aa1990
> 
> This seems to fix it:
<snip>
> -    else if (fs_state == FULLSCREEN_NONE && ! maximizing_resize
> -             && [[self window] titleVisibility])
> +    else if (fs_state == FULLSCREEN_NONE && ! maximizing_resize)

Unfortunately removing the title test introduces a crash bug under
certain circumstances.

Can you try replacing it with this:

    else if (fs_state == FULLSCREEN_NONE && ! maximizing_resize
             && [[self window] title] != NULL)

and let me know if it fixes the resizing problem?

Thanks!
-- 
Alan Third





^ permalink raw reply	[flat|nested] 4+ messages in thread

* bug#26643: 26.0.50; not able to resize frame on OS X
  2017-04-24 22:05   ` Alan Third
@ 2017-04-25 19:05     ` Charles A. Roelli
  0 siblings, 0 replies; 4+ messages in thread
From: Charles A. Roelli @ 2017-04-25 19:05 UTC (permalink / raw)
  To: 26643

> Unfortunately removing the title test introduces a crash bug under
> certain circumstances.
>
> Can you try replacing it with this:
>
>     else if (fs_state == FULLSCREEN_NONE && ! maximizing_resize
>              && [[self window] title] != NULL)
>
> and let me know if it fixes the resizing problem?
>
> Thanks!

This does fix the issue.  Thanks for the help!







^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-25 19:05 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-24 19:11 bug#26643: 26.0.50; not able to resize frame on OS X Charles A. Roelli
2017-04-24 20:07 ` Charles A. Roelli
2017-04-24 22:05   ` Alan Third
2017-04-25 19:05     ` Charles A. Roelli

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.