all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan D." <jan.h.d@swipnet.se>
Cc: emacs-pretest-bug@gnu.org, Emacs-Devel <emacs-devel@gnu.org>
Subject: Re: Help with partial line needed
Date: Sun, 13 Feb 2005 11:14:02 +0100	[thread overview]
Message-ID: <420F286A.9050607@swipnet.se> (raw)
In-Reply-To: <x5fz01ea2n.fsf@lola.goethe.zz>

David Kastrup wrote:

>Sorry I couldn't help.
>  
>
>
>Well, if the problem with fluxbox could be wrapped in a bug report and
>sent to the maintainers, this _could_ help.  For me, the effect is not
>overly tragic since I usually don't use the toolbar, let alone detach
>it.  Detached, I'd consider it quite more useful if it would be
>vertically arranged, but I have no clue about what GTK+ might offer in
>that respect.
>
>  
>

I could perhaps wrap it in a smaller program, but currently I have not 
much time to spare.  The explanation seems to be some race condition or 
invalid caching of information in fluxbox.  This happens for me:

Emacs frame has a height of 783 pixels.  The base height is 63 pixels, 
and the height increment is 15 (see XSetWMSizeHints).  63 is the menu 
bar and the tool bar.  15 is the line height.  I have 48 lines, so 63 + 
15*48 = 768.  Everything is OK.

I detach the tool bar (38 pixels), so Emacs sets the base height to 27 
(63 - 36, because there is a 2 pixel remnant of the tool bar when detached).
Now, 27 + 15*48 = 747, so Emacs resizes the frame to 747 pixels.

But fluxbox has apprently not updated the base size for Emacs, it still 
uses the old value of 63:  (747 - 63)/15 is about 45.6.  The rule as 
stated in ICCCAM is that our frame size must be base_size + n * 
height_increment, so fluxbox drops the reminder and sends a 
ConfigureNotify to Emacs with the height 738 (63 + 15*45).

Emacs adapts to this (there is no way to tell that this wasn't a user 
resize), so the frame shrinks.

If I detach and attach slowly, it usually works OK, so I guess there is 
a timing problem in fluxbox.

    Jan D.

      reply	other threads:[~2005-02-13 10:14 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <x57jlh9qna.fsf@lola.goethe.zz>
     [not found] ` <420BC387.3000503@swipnet.se>
     [not found]   ` <x5acqcqfx0.fsf@lola.goethe.zz>
2005-02-12 20:56     ` Help with partial line needed (was: Bad resizing upon detaching/reattaching GTK toolbar) Jan D.
2005-02-12 21:34       ` Help with partial line needed David Kastrup
2005-02-13 10:14         ` Jan D. [this message]

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=420F286A.9050607@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=emacs-devel@gnu.org \
    --cc=emacs-pretest-bug@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.