From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61710: 30.0.50; frame parameter `(fullscreen . maximized)' does not work with PGTK and emacsclient --create-frame Date: Wed, 22 Feb 2023 19:12:11 +0200 Message-ID: <83sfexr5ec.fsf@gnu.org> References: <83wn49ra1n.fsf@gnu.org> <452a91bb-6b16-6d7b-3ffc-3a532c3dbe8a@suse.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40352"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61710@debbugs.gnu.org To: Alynx Zhou Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 22 18:13:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pUsgH-000AF5-73 for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 22 Feb 2023 18:13:25 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pUsfx-0007Ve-9I; Wed, 22 Feb 2023 12:13:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUsfw-0007VT-1j for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2023 12:13:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pUsfv-000817-Js for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2023 12:13:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pUsfu-0000V9-BP for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2023 12:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 22 Feb 2023 17:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61710 X-GNU-PR-Package: emacs Original-Received: via spool by 61710-submit@debbugs.gnu.org id=B61710.16770859261855 (code B ref 61710); Wed, 22 Feb 2023 17:13:02 +0000 Original-Received: (at 61710) by debbugs.gnu.org; 22 Feb 2023 17:12:06 +0000 Original-Received: from localhost ([127.0.0.1]:60243 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUsf0-0000Tq-5T for submit@debbugs.gnu.org; Wed, 22 Feb 2023 12:12:06 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:40268) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pUsey-0000TG-Cv for 61710@debbugs.gnu.org; Wed, 22 Feb 2023 12:12:04 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUses-0007tk-Op; Wed, 22 Feb 2023 12:11:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=KVoJxzu6sqnH36jnakUhEfVgvmUC/lCUDEDbEw1hw1Y=; b=JluXIAcz5Ogl cmeIgRJeMKhRMleTRoX01Bt5k1hmJDyDkblqj+YK0Z62b7e5maK1iQJGlGWTuv8N/ipOw+RtJKKjm plNV7ACr54+sjmuI47aUZxzh5Gd6KGB71tg7uvJbStECL8TOajihJ8KfLE+xL8fVj1rfEOMgstL3U h39nIEKLkp6X0Jld/mkTUzKH4frhCrPjjbxTGWf/lxiC7OA1ENkHj0DcC4Iidd2bufjIDNAKHKFWL uC7NGPcGbmJf4vqrl0PHr22YWEfm4oOeDGxzSsmZLL5f/i2dm6h/UPIUImoEH7YT/Aazy+IT7VaUo zYAjw8ghbuVTuDEVSUSLow==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pUser-0002Kf-PB; Wed, 22 Feb 2023 12:11:58 -0500 In-Reply-To: <452a91bb-6b16-6d7b-3ffc-3a532c3dbe8a@suse.com> (message from Alynx Zhou on Thu, 23 Feb 2023 00:34:43 +0800) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:256383 Archived-At: > Date: Thu, 23 Feb 2023 00:34:43 +0800 > Cc: 61710@debbugs.gnu.org > From: Alynx Zhou > > On 2/22/23 23:31, Eli Zaretskii wrote: > >> 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" > >> > >> 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? > > Well, I did not try the hook, however, I think first this just adds > default parameter, and it actually makes effect when `make-frame` is > called, at that time client already sends server its display. Plus, GTK > allows to set maximized before window is shown, this means the window > will maximized once mapped, which is just what I want. But what exactly "maximized" means depends on the display geometry, and the daemon doesn't have access to that, since it doesn't initialize the X connection. > I also tried the X11 GTK version, it does not have this bug. Then maybe the problem is not where I think it is. Sorry.