unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: "Basil L. Contovounesios" <contovob@tcd.ie>
Cc: 48809@debbugs.gnu.org
Subject: bug#48809: 28.0.50; Missing Lucid/GTK2 graphical elements on tiling WM
Date: Fri, 11 Jun 2021 18:40:58 +0200	[thread overview]
Message-ID: <0a4d391b-c240-e161-838e-8e0873c48084@gmx.at> (raw)
In-Reply-To: <87y2bgfw3h.fsf@tcd.ie>

Thanks.  What I get here with Lucid from the line starting with
x_make_frame_visible is

x_make_frame_visible
MapNotify, not hidden & not iconified, PS=754x686, DS=754x686
change_frame_size (5), MS=18x36 IH IV
EmacsFrameResize, PS=754x686, XS=754x686
change_frame_size_1, delayed, PS=754x686, XS=754x686
EmacsFrameResize, PS=754x686, XS=754x686, DS=754x686
EmacsFrameResize, PS=754x686, XS=754x686
change_frame_size_1, delayed, PS=754x686, XS=754x686
EmacsFrameResize, PS=754x686, XS=754x686, DS=754x686
EmacsFrameResize, PS=754x686, XS=754x686, DS=754x686
change_frame_size (5), MS=18x36 IH IV
change_frame_size (5), MS=18x36 IH IV

What you get instead is

x_make_frame_visible
EmacsFrameResize, PS=754x686, XS=956x1029, DS=754x686

Here your WM asks Emacs to resize the frame to a native size of 956x1029
pixels instead of the 754x686 we asked for ...

change_frame_size_1, delayed, PS=754x686, XS=956x1029, DS=754x686
MapNotify, not hidden & not iconified, PS=754x686, DS=956x1029
EmacsFrameResize, PS=754x686, XS=956x1029, DS=956x1029
change_frame_size_1, delayed, PS=754x686, XS=956x1029, DS=956x1029
change_frame_size (5), TS=720x648~>922x991, TC=80x36~>102x55, NS=754x686~>956x1029, IS=752x648~>954x991, MS=18x36 IH IV

... and here we should apply this change with a new inner size of 954x991
pixels.  Something must go wrong here because the remaining lines do not
indicate any change.

EmacsFrameResize, PS=956x1029, XS=956x1029
change_frame_size_1, delayed, PS=956x1029, XS=956x1029
EmacsFrameResize, PS=956x1029, XS=956x1029, DS=956x1029
EmacsFrameResize, PS=956x1029, XS=956x1029, DS=956x1029
EmacsFrameResize, PS=956x1029, XS=956x1029
change_frame_size_1, delayed, PS=956x1029, XS=956x1029
EmacsFrameResize, PS=956x1029, XS=956x1029, DS=956x1029
change_frame_size (5), MS=18x36 IH IV
change_frame_size (5), MS=18x36 IH IV

Does anything change if, in adjust_frame_size in frame.c, right after the

   adjust_frame_glyphs (f);
   calculate_costs (f);
   SET_FRAME_GARBAGED (f);
   /* We now say here that F was resized instead of using the old
      condition below.  Some resizing must have taken place and if it was
      only shifting the root window's position (paranoia?).  */
   f->resized_p = true;

block around line 893 you insert either of the lines

   windows_or_buffers_changed = 40;
   update_mode_lines = 40;

or both?

martin





  reply	other threads:[~2021-06-11 16:40 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-03 12:51 bug#48809: 28.0.50; Missing Lucid/GTK2 graphical elements on tiling WM Basil L. Contovounesios
2021-06-04  9:17 ` martin rudalics
2021-06-11 12:02   ` Basil L. Contovounesios
2021-06-11 16:40     ` martin rudalics [this message]
2021-06-12 10:44       ` Basil L. Contovounesios
2021-06-12 16:46         ` martin rudalics
2021-11-29 19:27           ` Lars Ingebrigtsen
2021-12-13 13:11             ` Basil L. Contovounesios via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-12-14 13:39               ` Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=0a4d391b-c240-e161-838e-8e0873c48084@gmx.at \
    --to=rudalics@gmx.at \
    --cc=48809@debbugs.gnu.org \
    --cc=contovob@tcd.ie \
    /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 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).