all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Katsumi Yamaoka <yamaoka@jpl.org>
Cc: 25511@debbugs.gnu.org
Subject: bug#25511: 26.0.50; modify-frame-parameters modifies undesignated parameter?
Date: Tue, 24 Jan 2017 10:37:37 +0100	[thread overview]
Message-ID: <58872061.1050900@gmx.at> (raw)
In-Reply-To: <b4mfuk895ps.fsf@jpl.org>

 > Windows native 25.1.90 shows:
 > (((geometry 0 0 1366 768)
 >    (workarea 0 0 1366 738)
 >    (mm-size 344 194)
 >    (name . "\\\\.\\DISPLAY1") ;; Note PC
 >    (frames))
 >   ((geometry -258 -1080 1920 1080)
 >    (workarea -258 -1080 1920 1050)
 >    (mm-size 531 299)
 >    (name . "\\\\.\\DISPLAY2") ;; External display
 >    (frames #<frame emacs@YAMAOKA-PC 04bbd448>)))
 >
 > 26.0.50 built on Cygwin shows:
 > (((geometry 258 1080 1366 768)
 >    (workarea 258 1080 1366 768)
 >    (mm-size 347 195)
 >    (frames)
 >    (source . "Gdk"))
 >   ((geometry 0 0 1920 1080)
 >    (workarea 0 0 1920 1080)
 >    (mm-size 488 274)
 >    (frames #<frame emacs@yamaoka-PC 0x77f446a8>)
 >    (source . "Gdk")))

The workareas' heights differ from the display heights for native
Windows but they don't for Gdk.  So it seems that Gdk might not be able
to deal with the taskbar.  We would have to find out why.

Funnily, the mm-size values differ as well.  God knows why.  If you have
a tape measure around you could find out who's more right ;-)

 > The values except for `frames' don't vary whether a frame stays
 > at DISPLAY1 or DISPLAY2.
 >
 > Thanks for the suggestions about ‘after-make-frame-functions’,
 > ‘frame-inhibit-implied-resize’, and others.  I didn't recall
 > I've been using ‘after-make-frame-functions’ for the other
 > purposes. ;-)  I'll try them one by one from now on.  Anyway, I
 > concluded I should not use dirty codes such as advising the core
 > functions, as much as possible.

Advising is no problem per se.  But ‘after-make-frame-functions’ is
there so it's better to use it (and along the way find out if there are
any problems with it).  Obviously, my proposal to use the workarea won't
work for Cygwin anyway, given you figures above.

martin






  reply	other threads:[~2017-01-24  9:37 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-23  7:28 bug#25511: 26.0.50; modify-frame-parameters modifies undesignated parameter? Katsumi Yamaoka
2017-01-23  8:03 ` martin rudalics
2017-01-23  9:01   ` Katsumi Yamaoka
2017-01-23 10:28     ` martin rudalics
2017-01-23 22:54       ` Katsumi Yamaoka
2017-01-24  0:45         ` Katsumi Yamaoka
2017-01-24  7:46           ` martin rudalics
2017-01-24  9:18             ` Katsumi Yamaoka
2017-01-24  9:37               ` martin rudalics [this message]
2017-06-05 12:57                 ` npostavs
2017-06-05 13:36                   ` martin rudalics
2017-06-06  0:00                     ` npostavs
2017-06-06  6:38                       ` martin rudalics
2017-01-24  7:46         ` martin rudalics
2017-01-23 17:27   ` Noam Postavsky
2017-01-23 18:01     ` martin rudalics

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=58872061.1050900@gmx.at \
    --to=rudalics@gmx.at \
    --cc=25511@debbugs.gnu.org \
    --cc=yamaoka@jpl.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.