unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Dani Moncayo <dmoncayo@gmail.com>
Cc: 16300-done@debbugs.gnu.org
Subject: bug#16300: 24.3.50; 'M-<F10>' doesn't work always
Date: Sat, 04 Jan 2014 14:43:33 +0100	[thread overview]
Message-ID: <52C81005.8040700@gmx.at> (raw)
In-Reply-To: <CAH8Pv0hDyRft+Yo_NdMwFiDid7dBLzNG6Cgzc==b=PknmpGrhg@mail.gmail.com>

 > It seems fixed, indeed.

The current code still doesn't catch all possible transitions.  For
example, a FULLSCREEN_HEIGHT followed by two M-<F10>s will get you a
normalized window which is arguable not TRT but catching this without
introducing additional states seems hardly possible.  Here I do

(defun toggle-full-height ()
   (interactive)
   (if (eq (frame-parameter nil 'fullscreen) 'fullheight)
       (set-frame-parameter nil 'fullscreen 'fullnone)
     (set-frame-parameter nil 'fullscreen 'fullheight)))

which IMO is the best way to use the FULLHEIGHT feature.

I'll close this bug.

 > And BTW, I don't know if it's due to this change, but I can't
 > reproduce the bug #14239 anymore with the current trunk.

The old code used SetWindowPos which according to

http://msdn.microsoft.com/en-us/library/windows/desktop/ms632611%28v=vs.85%29.aspx

should not be used:

   The coordinates used in a WINDOWPLACEMENT structure should be used
   only by the GetWindowPlacement and SetWindowPlacement
   functions. Passing workspace coordinates to functions which expect
   screen coordinates (such as SetWindowPos) will result in the window
   appearing in the wrong location. For example, if the taskbar is at the
   top of the screen, saving window coordinates using GetWindowPlacement
   and restoring them using SetWindowPos causes the window to appear to
   "creep" up the screen.

 > So it could
 > be closed as well.

Please do that.

martin





      reply	other threads:[~2014-01-04 13:43 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-30 12:02 bug#16300: 24.3.50; 'M-<F10>' doesn't work always Dani Moncayo
2014-01-04  9:33 ` martin rudalics
2014-01-04 11:18   ` Dani Moncayo
2014-01-04 13:43     ` martin rudalics [this message]

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=52C81005.8040700@gmx.at \
    --to=rudalics@gmx.at \
    --cc=16300-done@debbugs.gnu.org \
    --cc=dmoncayo@gmail.com \
    /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).