From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Emacs's set-frame-size can not work well with gnome-shell? Date: Fri, 31 Jan 2020 14:52:18 +0300 Message-ID: <414ade05-1ae6-75c2-9af1-e1eee42799a0@yandex.ru> References: <2056a194.3971.16f8d4dd4c5.Coremail.tumashu@163.com> <39d47d8c.4bad.16fcd672191.Coremail.tumashu@163.com> <729d39eb-d0b4-2cc5-cac3-e129a3effa87@yandex.ru> <06c6b6fb-ce6f-456b-6a22-c5a26a0ab297@gmx.at> <50912835-37d2-f15b-8fd1-b6619893d1ce@yandex.ru> <4a424bf3-ee08-b114-73ef-287bde14003b@gmx.at> <5dd35cdd-2914-0b91-a6fd-e8764feecfb0@gmx.at> <9839e101-a25d-8875-4eee-2e6772249afe@yandex.ru> <728856fd-dab1-eade-54f5-6ba2c299373a@gmx.at> <6c775e15-1113-8406-5583-97c259305a7d@yandex.ru> <0fe2d245-9ac1-3528-e710-38462441f8aa@gmx.at> <9bac54df-8cd3-303d-910e-07e161ff1f3e@gmx.at> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="103165"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 Cc: "emacs-devel@gnu.org" To: martin rudalics , tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 31 12:53:09 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ixUrE-000QnG-Tq for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Jan 2020 12:53:08 +0100 Original-Received: from localhost ([::1]:51904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixUrD-0004l5-Vc for ged-emacs-devel@m.gmane-mx.org; Fri, 31 Jan 2020 06:53:07 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48682) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ixUqf-0004K9-Mv for emacs-devel@gnu.org; Fri, 31 Jan 2020 06:52:36 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ixUqb-00005Q-Jd for emacs-devel@gnu.org; Fri, 31 Jan 2020 06:52:33 -0500 Original-Received: from mail-lj1-x236.google.com ([2a00:1450:4864:20::236]:40708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ixUqb-0008PX-C2 for emacs-devel@gnu.org; Fri, 31 Jan 2020 06:52:29 -0500 Original-Received: by mail-lj1-x236.google.com with SMTP id n18so6770762ljo.7 for ; Fri, 31 Jan 2020 03:52:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=jTlhGPXfUmFtEiZ66jemG4CmxKZpmxLfNB242Yz3suw=; b=HqVy/9+Gu9KDisyob0RyFzrWgtWkDXcoVIZiP4WE3bnAa4q0MjCycN/HZzJiAgp1Kc y6G2k/nT75WI9cWe8x8D9hJrotgiKgty2jzZh/31eF0+Tkaev+6t0Y/B9bhFjD2YCR64 lX62oQXnleZ4AHFQBOAEtOlHvBiNwzLNXlZVV6bGTXUo5Tw2SGIVyHn4fPn9dC3r3Tly +KikGj6oUS+Dgj3IZIyK8DMOFRtnf7rwDlryujgQjQ5mmmxgJztp38CaH+lXwcrRrkI2 QkxmfS1zxwwZhymER61nq1xpHeo/m/JCuWV6D4UENPkEGsR1RJvEmIkhbnWDuoDk7HgN sGZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:subject:to:cc:references:from:message-id :date:user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jTlhGPXfUmFtEiZ66jemG4CmxKZpmxLfNB242Yz3suw=; b=HmBI4kfJ4fhq4tYUCySsntK11sIq2HugIYjxfXjYk84853M/iV+KFWjQXNucYUVUtW DQmvu/N87T8Hkodeo2HCA/CFLOz7a+5m97zmxb67rd9wqedwGDmmInoEjqKvvfW5nofP gHAbI1qDP34ETOdbrn8aBAsDBqfbUCs7nlhb3WssgSCOoUu9esNIKvXffUR90D/VY/qI S6c1lk49CTC1sm7Q8CScFj4dSrYgEaUHwJD3FukhTb3n9ZlTDCjttqCJ8ox/QaJAJX1Z zFwY5MoSs422eOYhcd+LMheh+uvKxDXO3Kuwn1hwA0Xc6VfjTs+NJ+8tUx6kLWYSt/ni BXag== X-Gm-Message-State: APjAAAVe39YwfxT4X4+bgL0ZL+sskWdqRHeMnTzmHsajBk5UOTcaa7R2 qPZo9IKVzQxtq36FVs7Tpn10vd3AgVo= X-Google-Smtp-Source: APXvYqzxv53lCWjDjAqSEtta8bOrPs0DFPyYRxjlEH19o1YbLnOstqXCjippUIlp5Z5uDfrntNlnPA== X-Received: by 2002:a2e:814e:: with SMTP id t14mr5777883ljg.149.1580471539621; Fri, 31 Jan 2020 03:52:19 -0800 (PST) Original-Received: from [192.168.1.142] ([178.252.127.239]) by smtp.googlemail.com with ESMTPSA id i4sm4598072ljg.102.2020.01.31.03.52.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Jan 2020 03:52:18 -0800 (PST) In-Reply-To: Content-Language: en-US X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::236 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:244787 Archived-At: On 31.01.2020 12:29, martin rudalics wrote: > > So, Lucid build, under Mutter: > > > > - Resizing works, more or less. Moving a frame by its mode-line works > as well without stutters. > > - The right-bottom corner still jumps away. When I drag the frame by > the mode-line, it (the corner) also jumps at first, the same distance. > > - Same with moving or resizing a child frame. > > I reworked the code as attached.  This includes scaling support and the > jump away issue. Yes, jumping away seems to be gone. Resizing and moving by the mode-line is still smooth. > GTK resizing will probably still fail, the rest should > work now. Considering scaling was only a problem for GTK, that doesn't sound like success. Anyway, resizing normal undecorated frames in GTK seems to work just as well now. Resizing child frame (with scaling on) is still broken (but looks a bit different, no jumping around, at least). With GTK build frame resizing also doesn't honor non-pixelwise resizing. When frame-resize-pixelwise is nil, resizing routinely eats into internal borders (right and bottom ones). > > - tumashu's child frame moving test scenario is still slow. > > > > E.g. > > > >    (benchmark 1 `(set-frame-position ,test-frame 50 50)) > >    => 0.5s > > Nothing changed in this regard.  But here > > (benchmark 1 `(x-set-frame-size-and-position ,test-frame nil nil 50 50)) > > => 0.100523s Seems like a possible improvement, but still much slower than set-frame-position with the GTK build.