Subject: Re: bug#19075: `toggle-frame-maximized' and `toggle-frame-fullscreen' on Windows

From: Eli Zaretskii <[email-masked]>
Date: Mon, 17 Nov 2014 18:03:22 +0200

> Date: Mon, 17 Nov 2014 11:16:10 +0100
> From: martin rudalics <[email-masked]>
> Cc: [email-masked]
> 
>  > By the way, I forgot to mention that sometimes it
>  > works and sometimes not, like if there was some concurrency issue.
> 
> I think so too.  You should be able to verify that by putting
> 
> (toggle-frame-maximized)
> (sit-for 0)
> (toggle-frame-fullscreen)
> 
> into your .emacs.

The concurrency issue is fundamental, since the Windows messages are
handled in a separate thread, and a command sent to a frame is not
executed immediately.