From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Scrollbar width not respected in restored frames Date: Mon, 20 Nov 2023 14:34:27 +0200 Message-ID: <83y1esiox8.fsf@gnu.org> References: <76293cb5-bba5-77ab-8420-cc60787a6fd4@magnaspesmeretrix.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29888"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Nov 20 13:36:05 2023 Return-path: Envelope-to: geh-help-gnu-emacs@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 1r53VU-0007We-Sq for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 20 Nov 2023 13:36:05 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r53UC-0002T7-De; Mon, 20 Nov 2023 07:34:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r53UA-0002So-NL for help-gnu-emacs@gnu.org; Mon, 20 Nov 2023 07:34:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r53UA-0000IJ-EQ for help-gnu-emacs@gnu.org; Mon, 20 Nov 2023 07:34:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=UD/7sHgwcCnammhyILbQXNIKO+uU17C2KNvw7hYY0z8=; b=P6QV80cpX+PNcP5q7uuC 1C2T4uNNR1bq/q8E0ZAI35MAcxM9EjxePchFsQMdgBt3U7DDkmZLLX4M+WiCE11ogNINr8WGUS8kT NHhizkWd2hBd1PxgiTItR3cwo3iiEaIJ8EhO4MpxbDEyWTfBRw4ZlFBAUqvR+AQEOG3+r802NZVG7 oZ1AIA+grWMwgZXgnRAHHTRp1UnFkivrOnEurbT/bfhTrv8COEnFekDj2apHV8J2HhnrwVXqx78Kr heEElHYaZ8PbbK9KAibH2EcnXiDHT0TvIDHOkZrJ2pL6blloVLEWD77KGPotzbeqIspRPtnlMN6kX ozbMZB8416vkCA==; In-Reply-To: <76293cb5-bba5-77ab-8420-cc60787a6fd4@magnaspesmeretrix.org> (message from PierGianLuca on Mon, 20 Nov 2023 11:46:37 +0100) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145557 Archived-At: > Date: Mon, 20 Nov 2023 11:46:37 +0100 > From: PierGianLuca > > Hi everyone, > > I'm on Ubuntu 20.04, KDE Plasma X11. Emacs 29.1 from tarball. > > I consistently see a discrepancy between the vertical-scrollbar width of the initial frames, restored from a previous session, and of subsequent frames called with make-frame-command (C-x52). > > Here is an example, I'd like to know whether others see this behaviour too: > > 1. Make sure Desktop-save-mode is on > > 2. Select any geometry you like in default-frame-alist and specify scroll-bar-width with some value (in my case it's "21") > > 3. Create a new frame with "C-x 5 2". > > 4. Check that the vertical scrollbar respects the width specified in default-frame-alist. If you like, check the window geometry with some tool like "xwininfo". > > 5. Close all other frames, make sure the one you created in step 3. is the only one left. > > 6. Quit the Emacs session > > 7. Start Emacs. You should see the frame from the previous session. > > 8. Check the width of the vertical scrollbar in this frame. You should see it's different from the one right before you quit Emacs. This should be confirmed by "xwininfo" or similar tool. > > 9. Create a new frame with "C-x 5 2". You should see that the new frame respects the scrollbar width of "default-frame-alist" (and it's different from the one of the first, initially restored frame). > > > May this be a bug in desktop-save-mode? I cannot reproduce this. Look in the .emacs.desktop file created by desktop.el: if it specifies the scroll-bar-width value you set, then it should be restored (it is here). If that doesn't work for you, maybe it's something related to your window-manager or system-wider settings that override what desktop.el tries to restore.