Subject: Re: bug#61710: 30.0.50; frame parameter `(fullscreen . maximized)' does not work with PGTK and emacsclient --create-frame

From: Eli Zaretskii <[email-masked]>
Date: Wed, 22 Feb 2023 17:31:48 +0200

> Date: Wed, 22 Feb 2023 21:27:42 +0800
> From:  Alynx Zhou via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <[email-masked]>
> 
> This problem could be reproduced with those minimal steps:
> 
> 1. `emacs -Q --eval "(add-to-list 'default-frame-alist '(fullscreen . 
> maximized))" --daemon`

I think any customizations that need a real display should be done
from server-after-make-frame-hook, not at startup time.  Did you try
that?