* bug#16517: Emacs and display resolution change
@ 2014-01-22 7:32 Fabrice Popineau
2014-01-25 13:06 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Popineau @ 2014-01-22 7:32 UTC (permalink / raw)
To: 16517
[-- Attachment #1: Type: text/plain, Size: 1596 bytes --]
Hi,
The current Emacs trunk does not seem to honour display resolution change
under Windows.
There is one case where it is annoying: when the frame is fullsized.
I have a laptop. I run `emacs -Q' , then `M-x toggle-frame-fullscreen'.
Next I connect an external display with a higher resolution.
The frame displays undecorated, but with a size of the previous screen
resolution.
I need to call `M-x toggle-frame-fullscreen' twice to get back a fullsized
frame.
I think that for handling at least this case, the following patch could be
applied:
=== modified file 'src/w32term.c'
--- src/w32term.c 2014-01-06 17:22:52 +0000
+++ src/w32term.c 2014-01-22 05:49:45 +0000
@@ -4841,6 +4844,7 @@
if (f)
{
dpyinfo->n_cbits = msg.msg.wParam;
+ x_check_fullscreen(f);
DebPrint (("display change: %d %d\n",
(short) LOWORD (msg.msg.lParam),
(short) HIWORD (msg.msg.lParam)));
However I'm not sure of any possibly harmful side effects.
One thing I have observed is that if you start with a normal frame, lower
the resolution to some point where the y resolution is less than the height
of the frame, then the frame will become height-maximized. So if you raise
the resolution again, it will stay height-maximized.
I'm fine with that, but I'm not sure what users would expect. Memorizing
the frame geometry so that it will be restored in case of several
resolution change maybe more complex.
Apologies if I missed obvious points or ways to handle that.
Regards,
Fabrice Popineau
[-- Attachment #2: Type: text/html, Size: 2070 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#16517: Emacs and display resolution change
2014-01-22 7:32 bug#16517: Emacs and display resolution change Fabrice Popineau
@ 2014-01-25 13:06 ` Eli Zaretskii
2014-01-25 13:17 ` Fabrice Popineau
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2014-01-25 13:06 UTC (permalink / raw)
To: Fabrice Popineau; +Cc: 16517-done
> From: Fabrice Popineau <fabrice.popineau@gmail.com>
> Date: Wed, 22 Jan 2014 08:32:31 +0100
>
> The current Emacs trunk does not seem to honour display resolution change
> under Windows.
> There is one case where it is annoying: when the frame is fullsized.
> I have a laptop. I run `emacs -Q' , then `M-x toggle-frame-fullscreen'.
> Next I connect an external display with a higher resolution.
> The frame displays undecorated, but with a size of the previous screen
> resolution.
> I need to call `M-x toggle-frame-fullscreen' twice to get back a fullsized
> frame.
>
> I think that for handling at least this case, the following patch could be
> applied:
No comments, so I applied your patch. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* bug#16517: Emacs and display resolution change
2014-01-25 13:06 ` Eli Zaretskii
@ 2014-01-25 13:17 ` Fabrice Popineau
0 siblings, 0 replies; 3+ messages in thread
From: Fabrice Popineau @ 2014-01-25 13:17 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 16517-done
[-- Attachment #1: Type: text/plain, Size: 892 bytes --]
Thanks. It seems harmless for those who don't need it and helps a lot the
others (like me!).
Fabrice
2014-01-25 Eli Zaretskii <eliz@gnu.org>
> > From: Fabrice Popineau <fabrice.popineau@gmail.com>
> > Date: Wed, 22 Jan 2014 08:32:31 +0100
> >
> > The current Emacs trunk does not seem to honour display resolution change
> > under Windows.
> > There is one case where it is annoying: when the frame is fullsized.
> > I have a laptop. I run `emacs -Q' , then `M-x toggle-frame-fullscreen'.
> > Next I connect an external display with a higher resolution.
> > The frame displays undecorated, but with a size of the previous screen
> > resolution.
> > I need to call `M-x toggle-frame-fullscreen' twice to get back a
> fullsized
> > frame.
> >
> > I think that for handling at least this case, the following patch could
> be
> > applied:
>
> No comments, so I applied your patch. Thanks.
>
[-- Attachment #2: Type: text/html, Size: 1371 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-25 13:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-22 7:32 bug#16517: Emacs and display resolution change Fabrice Popineau
2014-01-25 13:06 ` Eli Zaretskii
2014-01-25 13:17 ` Fabrice Popineau
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.