unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: martin rudalics <rudalics@gmx.at>
To: Juanma Barranquero <lekktu@gmail.com>
Cc: 14949@debbugs.gnu.org
Subject: bug#14949: Snapped window acts like a fullscreen one (Windows 7)
Date: Sun, 05 Jan 2014 19:39:23 +0100	[thread overview]
Message-ID: <52C9A6DB.30402@gmx.at> (raw)
In-Reply-To: <CAAeL0SRZ+YmL7W_k7oLAE5buL5Kc9QYOwiAFE4O4+9akj8Lpbw@mail.gmail.com>

 > If I had to guess, I'd bet that when the window is snapped (that's how
 > the feature is called, Aero Snap), Windows remembers that it is
 > sort-of-maximized (to make de-snapping possible). So if we pass
 > SW_SHOWNORMAL ("If the window is minimized or maximized, the system
 > restores it to its original size and position") to ShowWindow, Windows
 > restores the frame; then Emacs gets hold of the (new) size and
 > position.
 >
 > Does that make any sense?

It does.  You should be able to verify this by debugging it.  Or better
by investigating the WINDOWPLACEMENT structure.  Then you can try to
replace SW_SHOWNORMAL by SW_RESTORE.  If that doesn't help either we are
probably lost.

martin





      reply	other threads:[~2014-01-05 18:39 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-25  0:07 bug#14949: Snapped window acts like a fullscreen one (Windows 7) Juanma Barranquero
2014-01-04 15:42 ` martin rudalics
2014-01-04 20:47   ` Juanma Barranquero
2014-01-05 10:37     ` martin rudalics
2014-01-05 17:15       ` Juanma Barranquero
2014-01-05 18:00         ` martin rudalics
2014-01-05 18:11           ` Juanma Barranquero
2014-01-05 18:39             ` 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=52C9A6DB.30402@gmx.at \
    --to=rudalics@gmx.at \
    --cc=14949@debbugs.gnu.org \
    --cc=lekktu@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).