unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#61710: 30.0.50; frame parameter `(fullscreen . maximized)' does not work with PGTK and emacsclient --create-frame
@ 2023-02-22 13:27 Alynx Zhou via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2023-02-22 15:31 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Alynx Zhou via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2023-02-22 13:27 UTC (permalink / raw)
  To: 61710

This problem could be reproduced with those minimal steps:

1. `emacs -Q --eval "(add-to-list 'default-frame-alist '(fullscreen . 
maximized))" --daemon`
2. `emacsclient --create-frame WHATEVER_FILES`

What's expected:

Every frame created by emacsclient should be maximized.

What's happened:

Emacs's content only fills part of the screen space, the frame looks 
like in full screen state (no window shadows, you cannot maximize it 
manually), except the frame size is incorrect.

I am using GNOME Shell 43.3 Wayland session. It also has some other 
strange behaviors which may be helpful to debug:

- Emacs itself cannot reproduce this bug, only emacsclient.
- If you restore the misbehave window, and maximize it again, it works 
fine then.
- If you open whatever files with `emacsclient --create-frame 
WHATEVER_FILES`, this bug should happen, but if emacs frame starts with 
scratch buffer first, this bug cannot be reproduced (for example don't 
appened files to emacsclient's arguments, or you opened a _soft linked_ 
file, then emacs will _display scratch buffer and asking you whether you 
follow link_). That's the most strange behavior.
- This bug cannot be reproduced under X11 session.

Thanks ahead.

Alynx Zhou

---

In GNU Emacs 30.0.50 (build 10, x86_64-pc-linux-gnu, GTK+ Version
  3.24.36, cairo version 1.17.8) of 2023-02-22 built on camelot
Repository revision: cac13e360547f95ec64d34f38003dfc7ff1a97ee
Repository branch: makepkg
System Description: Arch Linux

Configured using:
  'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
  --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games
  --without-libotf --without-m17n-flt --without-gconf
  --with-native-compilation=aot --with-xinput2 --with-pgtk
  --without-xaw3d --with-sound=alsa --with-xwidgets --with-tree-sitter
  --without-compress-install
  '--program-transform-name=s/\([ec]tags\)/\1.emacs/'
  'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
  -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
  -fstack-clash-protection -fcf-protection'
  LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER
PGTK PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS
TREE_SITTER WEBP XIM XWIDGETS GTK3 ZLIB

Important settings:
   value of $LANG: en_US.UTF-8
   value of $XMODIFIERS: @im=ibus
   locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
   display-fill-column-indicator-mode: t
   highlight-indent-guides-mode: t
   hl-todo-mode: t
   rainbow-mode: t
   flycheck-mode: t
   lsp-bridge-mode: t
   yas-minor-mode: t
   vertico-mode: t
   popper-echo-mode: t
   popper-mode: t
   editorconfig-mode: t
   which-key-mode: t
   global-diff-hl-mode: t
   global-undo-tree-mode: t
   undo-tree-mode: t
   whole-line-or-region-global-mode: t
   whole-line-or-region-local-mode: t
   alynx-mode-line-mode: t
   global-auto-revert-mode: t
   savehist-mode: t
   save-place-mode: t
   recentf-mode: t
   pixel-scroll-precision-mode: t
   global-hl-line-mode: t
   global-display-line-numbers-mode: t
   display-line-numbers-mode: t
   delete-selection-mode: t
   windmove-mode: t
   override-global-mode: t
   tooltip-mode: t
   global-eldoc-mode: t
   eldoc-mode: t
   show-paren-mode: t
   electric-indent-mode: t
   mouse-wheel-mode: t
   file-name-shadow-mode: t
   global-font-lock-mode: t
   font-lock-mode: t
   line-number-mode: t
   transient-mark-mode: t
   auto-composition-mode: t
   auto-encryption-mode: t
   auto-compression-mode: t

Load-path shadows:
/home/alynx/.emacs.d/elpa/use-package-20221209.2013/use-package hides 
/usr/share/emacs/30.0.50/lisp/use-package/use-package
/home/alynx/.emacs.d/elpa/use-package-20221209.2013/use-package-lint 
hides /usr/share/emacs/30.0.50/lisp/use-package/use-package-lint
/home/alynx/.emacs.d/elpa/use-package-20221209.2013/use-package-jump 
hides /usr/share/emacs/30.0.50/lisp/use-package/use-package-jump
/home/alynx/.emacs.d/elpa/use-package-20221209.2013/use-package-ensure 
hides /usr/share/emacs/30.0.50/lisp/use-package/use-package-ensure
/home/alynx/.emacs.d/elpa/use-package-20221209.2013/use-package-diminish 
hides /usr/share/emacs/30.0.50/lisp/use-package/use-package-diminish
/home/alynx/.emacs.d/elpa/use-package-20221209.2013/use-package-delight 
hides /usr/share/emacs/30.0.50/lisp/use-package/use-package-delight
/home/alynx/.emacs.d/elpa/use-package-20221209.2013/use-package-core 
hides /usr/share/emacs/30.0.50/lisp/use-package/use-package-core
/home/alynx/.emacs.d/elpa/use-package-20221209.2013/use-package-bind-key 
hides /usr/share/emacs/30.0.50/lisp/use-package/use-package-bind-key
/home/alynx/.emacs.d/elpa/bind-key-20221209.2013/bind-key hides 
/usr/share/emacs/30.0.50/lisp/use-package/bind-key

Features:
(shadow sort mail-extr emacsbug message yank-media dired dired-loaddefs
rfc822 mml mml-sec epa epg rfc6068 epg-config gnus-util mm-decode
mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader
sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils
cursor-sensor time-date eshell esh-cmd esh-ext esh-opt esh-proc esh-io
esh-arg esh-module esh-groups esh-util cus-start files-x network-stream
puny nsm time display-fill-column-indicator highlight-indent-guides
advice hl-todo compat compat-macs rainbow-mode flycheck find-func dash
lsp-bridge lsp-bridge-lsp-installer lsp-bridge-diagnostic
lsp-bridge-code-action acm acm-quick-access acm-backend-citre
acm-backend-tailwind acm-backend-tabnine acm-backend-telega
acm-backend-tempel acm-backend-search-sdcv-words
acm-backend-search-file-words acm-backend-path acm-backend-lsp
acm-backend-elisp acm-backend-yas acm-icon lsp-bridge-call-hierarchy
lsp-bridge-jdtls lsp-bridge-ref derived grep compile
text-property-search comint ansi-osc ansi-color lsp-bridge-epc acm-frame
markdown-mode thingatpt noutline outline yasnippet-snippets yasnippet
posframe vertico orderless popper-echo popper editorconfig
editorconfig-core editorconfig-core-handle editorconfig-fnmatch
which-key svg-tag-mode svg-lib color svg dom xml diff-hl face-remap
vc-hg vc-git log-view pcvs-util vc-dir ewoc diff-mode undo-tree diff
queue whole-line-or-region alynx-mode-line let-alist pcase
alynx-one-light-theme alynx-one-dark-theme xref-js2 vc vc-dispatcher
js2-mode etags fileloop generator js imenu xref project
use-package-ensure c-ts-mode c-ts-common cc-mode cc-fonts cc-guess
cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs cus-edit
pp cus-load treesit autorevert filenotify savehist saveplace recentf
tree-widget wid-edit pixel-scroll cua-base ring whitespace hl-line
display-line-numbers delsel comp comp-cstr warnings icons windmove
edmacro kmacro use-package-bind-key bind-key easy-mmode server cl-extra
help-mode use-package-core info rainbow-mode-autoloads popper-autoloads
diff-hl-autoloads marginalia-autoloads mood-line-autoloads
yasnippet-snippets-autoloads flycheck-autoloads pkg-info-autoloads
epl-autoloads treemacs-autoloads ace-window-autoloads avy-autoloads
pfuture-autoloads hydra-autoloads lv-autoloads ht-autoloads
cfrs-autoloads posframe-autoloads consult-autoloads vertico-autoloads
orderless-autoloads editorconfig-autoloads org-bullets-autoloads
which-key-autoloads svg-tag-mode-autoloads svg-lib-autoloads
git-gutter-fringe-autoloads fringe-helper-autoloads git-gutter-autoloads
hl-todo-autoloads compat-autoloads highlight-indent-guides-autoloads
undo-tree-autoloads queue-autoloads whole-line-or-region-autoloads
move-text-autoloads olivetti-autoloads atom-one-dark-theme-autoloads
meson-mode-autoloads yaml-mode-autoloads web-mode-autoloads
markdown-mode-autoloads lua-mode-autoloads json-mode-autoloads rx
json-snatcher-autoloads xref-js2-autoloads js2-refactor-autoloads
multiple-cursors-autoloads dash-autoloads s-autoloads
yasnippet-autoloads js2-mode-autoloads use-package-autoloads
bind-key-autoloads package browse-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie generate-lisp-file
url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv
bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl tooltip
cconv eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type
elisp-mode mwheel term/pgtk-win pgtk-win term/common-win pgtk-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar
rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock
font-lock syntax font-core term/tty-colors frame minibuffer nadvice seq
simple cl-generic indonesian philippine cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads
xwidget-internal dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo gtk pgtk lcms2 multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 421267 290649)
  (symbols 48 29181 0)
  (strings 32 94697 50259)
  (string-bytes 1 3231376)
  (vectors 16 52855)
  (vector-slots 8 868112 321299)
  (floats 8 295 788)
  (intervals 56 487 86)
  (buffers 984 15))





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

end of thread, other threads:[~2023-02-24 10:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-22 13:27 bug#61710: 30.0.50; frame parameter `(fullscreen . maximized)' does not work with PGTK and emacsclient --create-frame Alynx Zhou via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-22 15:31 ` Eli Zaretskii
2023-02-22 16:34   ` Alynx Zhou via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-22 17:12     ` Eli Zaretskii
2023-02-22 17:28       ` Alynx Zhou via Bug reports for GNU Emacs, the Swiss army knife of text editors
2023-02-24 10:21       ` Alynx Zhou via Bug reports for GNU Emacs, the Swiss army knife of text editors

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).