all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: steve-humphreys@gmx.com
To: steve-humphreys@gmx.com
Cc: Michael Heerdegen <michael_heerdegen@web.de>, help-gnu-emacs@gnu.org
Subject: Re: set-frame-parameter
Date: Thu, 10 Dec 2020 03:33:24 +0100	[thread overview]
Message-ID: <trinity-26db5c75-33d0-4540-aa77-f8a583148ce4-1607567604737@3c-app-mailcom-bs13> (raw)
In-Reply-To: <trinity-42b5b0f8-3afc-4956-8f78-d70a92e791ec-1607566394090@3c-app-mailcom-bs13>

I wonder which way I should do things for fullscreen and re-sizing.

Is it good to use set-frame-parameter for fullscreen, and for re-sizing
using set-frame-size?


Have done as follows to make same size frame using set-frame-size.

(let ((w (frame-width)) (h (frame-height)))
    (set-frame-parameter (selected-frame) 'fullscreen nil)
    (set-frame-size nil w h))



> Sent: Thursday, December 10, 2020 at 3:13 AM
> From: steve-humphreys@gmx.com
> To: "Michael Heerdegen" <michael_heerdegen@web.de>
> Cc: help-gnu-emacs@gnu.org
> Subject: Re: set-frame-parameter
>
> > Sent: Thursday, December 10, 2020 at 1:38 AM
> > From: "Michael Heerdegen" <michael_heerdegen@web.de>
> > To: help-gnu-emacs@gnu.org
> > Subject: Re: set-frame-parameter
> >
> > Michael Heerdegen <michael_heerdegen@web.de> writes:
> >
> > > (set-frame-parameter (selected-frame) 'fullscreen nil)
> >
> > Yes, when I'm reading the C source correctly (`adjust_frame_size')
> > there are different reasons why resizing can be inhibited.
> >
> > One reason is when `frame_inhibit_resize', which checks for the
> > fullscreen variants, says so.
> >
> > So what we see seems to be expected.
>
> Thank you.  I think there are some commands to get the width
> and height of the screen.  I would like to set the frame
> explicitly after going full screen.
>
> > Michael.
>
>
>



  reply	other threads:[~2020-12-10  2:33 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-09 22:24 set-frame-parameter steve-humphreys
2020-12-09 22:58 ` set-frame-parameter Stephen Berman
2020-12-09 23:04   ` set-frame-parameter steve-humphreys
2020-12-09 23:13     ` set-frame-parameter Stephen Berman
2020-12-09 23:19       ` set-frame-parameter steve-humphreys
2020-12-09 23:26         ` set-frame-parameter Stephen Berman
2020-12-09 23:29           ` set-frame-parameter Stephen Berman
2020-12-09 23:39             ` set-frame-parameter steve-humphreys
2020-12-09 23:46               ` set-frame-parameter Stephen Berman
2020-12-09 23:49                 ` set-frame-parameter steve-humphreys
2020-12-09 23:43             ` set-frame-parameter steve-humphreys
2020-12-09 23:47               ` set-frame-parameter Stephen Berman
2020-12-09 23:50                 ` set-frame-parameter steve-humphreys
2020-12-10  0:19     ` set-frame-parameter Michael Heerdegen
2020-12-10  0:38       ` set-frame-parameter Michael Heerdegen
2020-12-10  2:13         ` set-frame-parameter steve-humphreys
2020-12-10  2:33           ` steve-humphreys [this message]
2020-12-10  3:01             ` set-frame-parameter Michael Heerdegen
2020-12-10  3:08               ` set-frame-parameter steve-humphreys
2020-12-10  3:55                 ` set-frame-parameter Michael Heerdegen
2020-12-10  4:09                   ` set-frame-parameter steve-humphreys
2020-12-10  3:17               ` set-frame-parameter steve-humphreys
2020-12-10  3:42                 ` set-frame-parameter steve-humphreys
2020-12-10  3:59                 ` set-frame-parameter Michael Heerdegen
2020-12-10  4:11                   ` set-frame-parameter steve-humphreys
2020-12-10 16:13                     ` set-frame-parameter Drew Adams
2020-12-10 17:26                       ` set-frame-parameter Michael Heerdegen
2020-12-10 18:31                         ` set-frame-parameter Drew Adams
2020-12-10 18:45                       ` set-frame-parameter Pankaj Jangid
2020-12-10 18:51                         ` set-frame-parameter Drew Adams
2020-12-10 19:03                           ` set-frame-parameter steve-humphreys
2020-12-10 20:44       ` set-frame-parameter Stephen Berman

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=trinity-26db5c75-33d0-4540-aa77-f8a583148ce4-1607567604737@3c-app-mailcom-bs13 \
    --to=steve-humphreys@gmx.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=michael_heerdegen@web.de \
    /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.