all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Bastien <bzg@altern.org>
Cc: 16430@debbugs.gnu.org
Subject: bug#16430: 24.3.50; When fullscreen is triggered from the window manager, I can't resize	window (via M-x org-export RET)
Date: Sat, 18 Jan 2014 13:19:21 +0100	[thread overview]
Message-ID: <52DA7149.60102@gmx.at> (raw)
In-Reply-To: <87sismherx.fsf@bzg.ath.cx>

 >>> (window-pixel-height (frame-root-window)) => 750
 >>>   (window-pixel-height (selected-window)) => 375
 >>>
 >>> With toggle-frame-fullscreen:
 >>>
 >>> (window-pixel-height (frame-root-window)) => 728
 >>>   (window-pixel-height (selected-window)) => 368
 >> What is the size of the other, non-selected window in each of these
 >> cases?
 >
 > Same for all values, except I get 364 instead of 368 for the last one.
 >
 >> And what gives evaluating (frame-char-height)?
 >
 > 18 in all cases.

I attach below two functions to do this. So please do M-x frame-dump and
retrieve the contents of the buffer *frame-dump* to post the results.
In particular, please do that once for each of your fullscreen frames
with a frame containing two windows above each other.

martin



(defun window-dump (window)
   "Dump WINDOW."
   (insert
    (format "%s   parent: %s\n" window (window-parent window))
    (format "pixel left: %s   top: %s   size: %s x %s   new: %s\n"
	   (window-pixel-left window) (window-pixel-top window)
	   (window-size window t t) (window-size window nil t)
	   (window-new-pixel window))
    (format "char left: %s   top: %s   size: %s x %s   new: %s\n"
	   (window-left-column window) (window-top-line window)
	   (window-total-size window t) (window-total-size window)
	   (window-new-total window))
    (format "normal: %s x %s   new: %s\n"
	   (window-normal-size window t) (window-normal-size window)
	   (window-new-normal window)))
   (when (window-live-p window)
     (insert
      (format "body pixel: %s x %s   char: %s x %s\n"
	     (window-body-width window t) (window-body-height window t)
	     (window-body-width window) (window-body-height window))))
   (insert "\n"))

(defun frame-dump (&optional frame)
   "Dump frame FRAME to buffer *frame-dump*.
FRAME defaults to the selected frame."
   (interactive)
   (setq frame (window-normalize-frame frame))
   (with-current-buffer (get-buffer-create "*frame-dump*")
     (erase-buffer)
     (insert
      (format "frame pixel: %s x %s   cols/lines: %s x %s   units: %s x %s\n"
	     (frame-pixel-width frame) (frame-pixel-height frame)
	     (frame-total-cols frame) (frame-text-lines frame) ; (frame-total-lines frame)
	     (frame-char-width frame) (frame-char-height frame))
      (format "frame text pixel: %s x %s   cols/lines: %s x %s\n"
	     (frame-text-width frame) (frame-text-height frame)
	     (frame-text-cols frame) (frame-text-lines frame))
      (format "tool: %s  scroll: %s  fringe: %s  border: %s  right: %s  bottom: %s\n\n"
	     (tool-bar-height frame t)
	     (frame-scroll-bar-width frame)
	     (frame-fringe-width frame)
	     (frame-border-width frame)
	     (frame-right-divider-width frame)
	     (frame-bottom-divider-width frame)))
     (walk-window-tree 'window-dump frame t t)))






  parent reply	other threads:[~2014-01-18 12:19 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-13 11:39 bug#16430: 24.3.50; When fullscreen is triggered from the window manager, I can't resize window (via M-x org-export RET) Bastien Guerry
2014-01-13 17:52 ` martin rudalics
2014-01-13 19:13   ` Bastien
2014-01-13 19:35     ` martin rudalics
2014-01-13 20:55       ` Bastien
2014-01-14  7:47         ` martin rudalics
2014-01-14  9:50           ` Bastien
2014-01-14 10:45             ` martin rudalics
2014-01-14 16:30               ` Bastien
2014-01-14 18:09                 ` martin rudalics
2014-01-14 20:18                   ` Bastien
2014-01-15  8:08                     ` martin rudalics
2014-01-17 14:19                       ` Bastien
2014-01-17 19:07                         ` martin rudalics
2014-01-18 12:19                         ` martin rudalics [this message]
2014-01-19 16:31                           ` Bastien
2014-01-19 17:31                             ` martin rudalics
2014-01-20 14:18                               ` Bastien
2014-01-20 18:18                                 ` martin rudalics
2014-01-20 18:25                                   ` Bastien
2014-01-22 10:35                                     ` martin rudalics
2014-01-22 11:06                                       ` Bastien
2014-01-14 20:22                   ` Bastien
2014-01-15  8:09                     ` martin rudalics
2014-01-17 14:44                       ` Bastien
2014-01-14 16:34             ` Bastien
2014-01-14 18:09               ` martin rudalics
2014-01-14 20:32                 ` Bastien
2014-01-15  8:09                   ` martin rudalics
2014-01-17 14:48                     ` Bastien
2014-01-13 20:56       ` Bastien
2014-01-14  7:48         ` martin rudalics
2014-01-14  9:45           ` Bastien
2014-01-22 11:07   ` Bastien

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=52DA7149.60102@gmx.at \
    --to=rudalics@gmx.at \
    --cc=16430@debbugs.gnu.org \
    --cc=bzg@altern.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.