all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: emacs-devel@gnu.org
Subject: Re: master 57d2f24: * lisp/frame.el (make-frame-on-monitor): New command. (Bug#34516)
Date: Thu, 28 Feb 2019 22:40:15 +0200	[thread overview]
Message-ID: <87k1hjk5ow.fsf@mail.linkov.net> (raw)
In-Reply-To: <m2d0nb3lfk.fsf@gmail.com> (Robert Pluim's message of "Thu, 28 Feb 2019 17:52:15 +0100")

> If Iʼve understood correctly, you want to create a frame that covers
> the entire workarea of the chosen monitor. Would it not work to
> specify the x,y of the top corner plus (fullscreen . maximized) rather
> than specifying the width and height explicitly? That will do the
> toolbar/titlebar/scrollbar subtractions for you (I haven't tested this).

I already have this for personal customization in ~/.emacs:

  (add-hook 'after-make-frame-functions 'toggle-frame-maximized)
  (advice-add 'make-frame-on-monitor :around
              (lambda (orig-fun monitor &optional display parameters)
                (funcall orig-fun monitor display '((undecorated . t))))
              '((name . make-frame-on-monitor-undecorated)))

But my intention was to implement a general command that would make
a new frame according to the physical monitor attributes returned by
display-monitor-attributes-list.

I have no idea why display-monitor-attributes-list returns
workarea that doesn't fit into the created frame on macOS.

While testing it without customization in GDK on GNU/Linux,
I see that the created frames cover the whole physical monitor,
including toolbar/titlebar/scrollbar.

Maybe there is still an issue in ns-display-monitor-attributes-list?



  reply	other threads:[~2019-02-28 20:40 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20190225211142.21954.14993@vcs0.savannah.gnu.org>
     [not found] ` <20190225211144.0DD23206A2@vcs0.savannah.gnu.org>
2019-02-26  9:12   ` master 57d2f24: * lisp/frame.el (make-frame-on-monitor): New command. (Bug#34516) Robert Pluim
2019-02-26 15:23     ` Eli Zaretskii
2019-02-27 20:59       ` Juri Linkov
2019-02-28  9:38         ` Robert Pluim
2019-02-28 16:52           ` Robert Pluim
2019-02-28 20:40             ` Juri Linkov [this message]
2019-03-01 13:40               ` Robert Pluim
2019-03-02 21:09                 ` Juri Linkov
2019-03-03  1:05                   ` Drew Adams
2019-03-03 21:30                     ` Juri Linkov
2019-03-04  0:01                       ` Drew Adams
2019-03-04  8:53                   ` Robert Pluim
2019-02-28 18:11         ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k1hjk5ow.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.