From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthias Clasen Newsgroups: gmane.emacs.bugs Subject: bug#23144: shrinking windows with gtk 3.20 Date: Sat, 2 Apr 2016 19:20:41 -0400 Message-ID: References: <56FF0C5B.1020201@cs.ucla.edu> <83r3eosdde.fsf@gnu.org> <8360w0rp10.fsf@gnu.org> <56FFEDF8.5030704@gmx.at> <834mbkrn4o.fsf@gnu.org> <83y48vrk5d.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1459639280 4607 80.91.229.3 (2 Apr 2016 23:21:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 2 Apr 2016 23:21:20 +0000 (UTC) Cc: Paul Eggert , 23144@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Apr 03 01:21:11 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1amUqt-0006JO-2E for geb-bug-gnu-emacs@m.gmane.org; Sun, 03 Apr 2016 01:21:11 +0200 Original-Received: from localhost ([::1]:51297 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amUqs-0004YW-5X for geb-bug-gnu-emacs@m.gmane.org; Sat, 02 Apr 2016 19:21:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amUqo-0004YQ-2s for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 19:21:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1amUqk-0001dH-0X for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 19:21:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:52162) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1amUqj-0001dD-Tm for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 19:21:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1amUqj-0007tE-Kz for bug-gnu-emacs@gnu.org; Sat, 02 Apr 2016 19:21:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Matthias Clasen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 02 Apr 2016 23:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23144 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 23144-submit@debbugs.gnu.org id=B23144.145963924830303 (code B ref 23144); Sat, 02 Apr 2016 23:21:01 +0000 Original-Received: (at 23144) by debbugs.gnu.org; 2 Apr 2016 23:20:48 +0000 Original-Received: from localhost ([127.0.0.1]:49289 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amUqW-0007sh-Fn for submit@debbugs.gnu.org; Sat, 02 Apr 2016 19:20:48 -0400 Original-Received: from mail-oi0-f50.google.com ([209.85.218.50]:34729) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1amUqV-0007sU-G1 for 23144@debbugs.gnu.org; Sat, 02 Apr 2016 19:20:47 -0400 Original-Received: by mail-oi0-f50.google.com with SMTP id s79so21830002oie.1 for <23144@debbugs.gnu.org>; Sat, 02 Apr 2016 16:20:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=HJlfB7UnanQ/kxpydmIHD5T6LtW0fPvWoqbb8/y0s3U=; b=cCxEG5N53ZpsPnjoRk0DVXHb0O60O3ywJs3vBqSf0tydYoXhwANcEJL3nndEeajb0k ZywQJI0+R7qky4O8E6b5yiPe0SwIO2ovgh0+WgfNFEBOaEb5yOj/tKnGOkwNM7/KTvZj uIl8xKL/ZgWfU5sof6O21gKMDdX6Fh7HkQzcEvm/2EAQXo+E3ninfo8u6bynvZBx8PpK xR3+9lDvvszz6bsP6PjJLjAwVDogNsomZpwoeMKOh4FE/7oIJ6+UkdigcwCas9HzdVfF h4utGFCxkmcLtcn9sFgN56nysYGLr6l/aRI2W3748BMb5IOU4D3ScDn8sgGPT0v13moG SrfA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=HJlfB7UnanQ/kxpydmIHD5T6LtW0fPvWoqbb8/y0s3U=; b=fyW1aI+cvHnDvw8gWDvlb7iA/aD26Ilq/Nyb/PPb3h3QVXVT9RW47T4EvAsWiNRNxs UzAsyA4m5tZgrW05Ge+iSpwHTLlJUWj03loPMBSrXIhrcKU2iED5SUb1ci6A4aaruzhR eSEoeD7Q4ZblLS5MzHDRTP/7OpTUzAfLgmWZvp51zWMleCBBXc6gpciBhEDEQG+dT4YU AzAIoYn+tX0KSYicq22jiA3wsIIH5HyVhELt9J2Jipd/vITtQglX/AA3lVFldsqHraso 2JkT+1lVy1AhhmPjxSFAzxPeX/rEdnnCa4M775QFrru1PHXkE/MdkLQ199uj6XtIYq4G De4w== X-Gm-Message-State: AD7BkJLArOAzjET7619uGGNqAer2ZyNRd1Gut/VbL9cIj+8Kpm9xJC6QpUthbDPz+CGw8Aok4Nk2UIfzseTfrQ== X-Received: by 10.202.83.75 with SMTP id h72mr4442581oib.121.1459639241918; Sat, 02 Apr 2016 16:20:41 -0700 (PDT) Original-Received: by 10.157.18.203 with HTTP; Sat, 2 Apr 2016 16:20:41 -0700 (PDT) In-Reply-To: <83y48vrk5d.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:115907 Archived-At: On Sat, Apr 2, 2016 at 1:32 PM, Eli Zaretskii wrote: >> Date: Sat, 2 Apr 2016 13:27:25 -0400 >> From: Matthias Clasen >> Cc: martin rudalics , 23144@debbugs.gnu.org, >> Paul Eggert >> >> > Do we understand the effect of this? It effectively makes the >> > xg_frame_resized call a no-op, but I very much doubt that this call >> > was added there with no good reason. Does the history of this >> > addition, including any related discussions, teach us something about >> > the reason? >> >> Yes, this is what I would have suggested as alternative patch for >> emacs 25. It only disregards the return value of >> gdk_window_get_geometry if it is still the initial value of 1,1 - >> thats clearly not a useful size for an emacs window... > > Ignoring the 1x1 dimensions is a no-brainer. What bothers me is > something else entirely: that call to xg_frame_resized was most > probably added there for a reason; if xg_frame_resized no longer works > with GTK 3.22 and later as it did before, the question is what, if > anything, else do we lose with the new behavior? > > Could you perhaps describe what that call does in older versions of > GTK, and why it worked before, but not anymore? Well, it seems that nobody on your side remembers the reason for why that particular xg_frame_resized call was added :-( It is not that xg_frame_resized doesn't work anymore with GTK 3.22. It just gets called at a time when the GdkWindow is not fully set up yet. The reason that that happens now is due to a) to some subtle changes in the way GTK+ sets up windows initially and b) emacs poking directly at X events like MapNotify.