unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23231: Modeline popup menus appear below emacs window (off sceen)
@ 2016-04-06 17:13 Lars Hupfeldt Nielsen
  2016-04-06 17:53 ` martin rudalics
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Hupfeldt Nielsen @ 2016-04-06 17:13 UTC (permalink / raw)
  To: 23231

[-- Attachment #1: Type: text/plain, Size: 4050 bytes --]

# /usr/bin/emacs -Q

left-click '(Lisp Interaction)'
------------------------------------------

The popup menu appears with the top just visible at the bottom of the
screen. Resizing the emacs window approximately to the top half of the
screen will make the menu visible far below the main emacs window.
All modeline menus behave this way.


Terminal output from emacs start:
-------------------------------------
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

------------------------------------

In GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.18.7)
 of 2016-02-03 on buildhw-05.phx2.fedoraproject.org
Windowing system distributor `Fedora Project', version 11.0.11801000
System Description:    Fedora release 23 (Twenty Three)

Configured using:
 `configure --build=x86_64-redhat-linux-gnu
 --host=x86_64-redhat-linux-gnu --program-prefix=
 --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr
 --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc
 --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64
 --libexecdir=/usr/libexec --localstatedir=/var
 --sharedstatedir=/var/lib --mandir=/usr/share/man
 --infodir=/usr/share/info --with-dbus --with-gif --with-jpeg --with-png
 --with-rsvg --with-tiff --with-xft --with-xpm --with-x-toolkit=gtk3
 --with-gpm=no build_alias=x86_64-redhat-linux-gnu
 host_alias=x86_64-redhat-linux-gnu 'CFLAGS=-DMAIL_USE_LOCKF -O2 -g
 -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2
 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4
 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1
 -m64 -mtune=generic' LDFLAGS=-Wl,-z,relro'

Important settings:
  value of $LANG: en_DK.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list...

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util
help-fns mail-prsvr mail-utils help-mode easymenu time-date tooltip
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd
tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment
lisp-mode prog-mode register page menu-bar rfn-eshadow timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham
georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese hebrew greek romanian slovak czech european ethiopic
indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple
abbrev minibuffer nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote make-network-process
dbusbind gfilenotify dynamic-setting system-font-setting
font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:
((conses 16 72235 5266)
 (symbols 48 17663 0)
 (miscs 40 36 113)
 (strings 32 9243 3746)
 (string-bytes 1 254488)
 (vectors 16 8987)
 (vector-slots 8 383888 17557)
 (floats 8 64 312)
 (intervals 56 229 4)
 (buffers 960 12)
 (heap 1024 47534 939))

Regards / Venlig Hilsen
Lars Hupfeldt Nielsen
Hupfeldt IT

Phone: +45 2060 3546

[-- Attachment #2: Type: text/html, Size: 4627 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23231: Modeline popup menus appear below emacs window (off sceen)
  2016-04-06 17:13 bug#23231: Modeline popup menus appear below emacs window (off sceen) Lars Hupfeldt Nielsen
@ 2016-04-06 17:53 ` martin rudalics
  2016-04-06 18:52   ` Lars Hupfeldt Nielsen
  0 siblings, 1 reply; 7+ messages in thread
From: martin rudalics @ 2016-04-06 17:53 UTC (permalink / raw)
  To: Lars Hupfeldt Nielsen, 23231

 > # /usr/bin/emacs -Q
 >
 > left-click '(Lisp Interaction)'

Is this a click on the 'Lisp Interaction' menu bar item or a click to
get the 'Lisp Interaction' popup menu?

 > ------------------------------------------
 >
 > The popup menu appears with the top just visible at the bottom of the
 > screen. Resizing the emacs window approximately to the top half of the
 > screen will make the menu visible far below the main emacs window.
 > All modeline menus behave this way.

Are tooltips positioned correctly?  Do you have DPI scaling turned on?

Thanks, martin





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23231: Modeline popup menus appear below emacs window (off sceen)
  2016-04-06 17:53 ` martin rudalics
@ 2016-04-06 18:52   ` Lars Hupfeldt Nielsen
  2016-04-06 19:00     ` Lars Hupfeldt Nielsen
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Hupfeldt Nielsen @ 2016-04-06 18:52 UTC (permalink / raw)
  To: martin rudalics; +Cc: 23231

[-- Attachment #1: Type: text/plain, Size: 779 bytes --]

Hi Martin,

This is a click in the mode-line.

Regards / Venlig Hilsen
Lars Hupfeldt Nielsen
Hupfeldt IT

Phone: +45 2060 3546

2016-04-06 19:53 GMT+02:00 martin rudalics <rudalics@gmx.at>:

> > # /usr/bin/emacs -Q
> >
> > left-click '(Lisp Interaction)'
>
> Is this a click on the 'Lisp Interaction' menu bar item or a click to
> get the 'Lisp Interaction' popup menu?
>
> > ------------------------------------------
> >
> > The popup menu appears with the top just visible at the bottom of the
> > screen. Resizing the emacs window approximately to the top half of the
> > screen will make the menu visible far below the main emacs window.
> > All modeline menus behave this way.
>
> Are tooltips positioned correctly?  Do you have DPI scaling turned on?
>
> Thanks, martin
>

[-- Attachment #2: Type: text/html, Size: 1273 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23231: Modeline popup menus appear below emacs window (off sceen)
  2016-04-06 18:52   ` Lars Hupfeldt Nielsen
@ 2016-04-06 19:00     ` Lars Hupfeldt Nielsen
  2016-04-07  8:48       ` martin rudalics
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Hupfeldt Nielsen @ 2016-04-06 19:00 UTC (permalink / raw)
  To: martin rudalics; +Cc: 23231

[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]

Hi Martin,

I guess I should read the entire email before replying.

Tooltips are actually misplaced too, I did not notice that because I have
turned the toolbar off. The further to the right the tool button is, the
longer the distance to the tooltip becomes.

This happens with no emacs configuration (I hid my .emacs.d).
I'm using a macbook pro with retina display 2800*1800, I don't remember
setting any dpi scaling.

This was working earlier, unfortunately I'm not sure exactly when it broke.

Regards / Venlig Hilsen
Lars Hupfeldt Nielsen
Hupfeldt IT

Phone: +45 2060 3546

2016-04-06 20:52 GMT+02:00 Lars Hupfeldt Nielsen <lhn@hupfeldtit.dk>:

> Hi Martin,
>
> This is a click in the mode-line.
>
> Regards / Venlig Hilsen
> Lars Hupfeldt Nielsen
> Hupfeldt IT
>
> Phone: +45 2060 3546
>
> 2016-04-06 19:53 GMT+02:00 martin rudalics <rudalics@gmx.at>:
>
>> > # /usr/bin/emacs -Q
>> >
>> > left-click '(Lisp Interaction)'
>>
>> Is this a click on the 'Lisp Interaction' menu bar item or a click to
>> get the 'Lisp Interaction' popup menu?
>>
>> > ------------------------------------------
>> >
>> > The popup menu appears with the top just visible at the bottom of the
>> > screen. Resizing the emacs window approximately to the top half of the
>> > screen will make the menu visible far below the main emacs window.
>> > All modeline menus behave this way.
>>
>> Are tooltips positioned correctly?  Do you have DPI scaling turned on?
>>
>> Thanks, martin
>>
>
>

[-- Attachment #2: Type: text/html, Size: 2477 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23231: Modeline popup menus appear below emacs window (off sceen)
  2016-04-06 19:00     ` Lars Hupfeldt Nielsen
@ 2016-04-07  8:48       ` martin rudalics
  2016-04-07 22:08         ` Lars Hupfeldt Nielsen
  0 siblings, 1 reply; 7+ messages in thread
From: martin rudalics @ 2016-04-07  8:48 UTC (permalink / raw)
  To: Lars Hupfeldt Nielsen; +Cc: 23231

 > This is a click in the mode-line.

I see.

 > Tooltips are actually misplaced too, I did not notice that because I have
 > turned the toolbar off.

Tooltips and the toolbar are not nececessarily related to each other.
Most entries in the mode line have a tooltip whose left edge should
appear right under the mouse pointer when it hovers over an entry.  The
popup menus should appear centered under the mouse pointer instead.  Can
you roughly describe the relative positions of tooltip and menu for your
mode line entries?

 > The further to the right the tool button is, the
 > longer the distance to the tooltip becomes.

To the right of what - the left edge of the display or the left edge of
the Emacs frame?  Also IIUC x- and y-offsets are affected: Are they off
by the same amounts or proportional to the size of the display?

What happens when you hold the Ctrl key together with a mouse click to
show the Buffer or the Major Mode menus?  Are these menus off as well?

 > This happens with no emacs configuration (I hid my .emacs.d).
 > I'm using a macbook pro with retina display 2800*1800, I don't remember
 > setting any dpi scaling.
 >
 > This was working earlier, unfortunately I'm not sure exactly when it broke.

Could you try with an older Emacs?

martin





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23231: Modeline popup menus appear below emacs window (off sceen)
  2016-04-07  8:48       ` martin rudalics
@ 2016-04-07 22:08         ` Lars Hupfeldt Nielsen
  2016-04-08  7:18           ` martin rudalics
  0 siblings, 1 reply; 7+ messages in thread
From: Lars Hupfeldt Nielsen @ 2016-04-07 22:08 UTC (permalink / raw)
  To: martin rudalics; +Cc: 23231

On Thu, 2016-04-07 at 10:48 +0200, martin rudalics wrote:
>  > This is a click in the mode-line.
> 
> I see.
> 
>  > Tooltips are actually misplaced too, I did not notice that because
> I have
>  > turned the toolbar off.
> 
> Tooltips and the toolbar are not nececessarily related to each other.
> Most entries in the mode line have a tooltip whose left edge should
> appear right under the mouse pointer when it hovers over an
> entry.  The
> popup menus should appear centered under the mouse pointer
> instead.  Can
> you roughly describe the relative positions of tooltip and menu for
> your
> mode line entries?
> 
>  > The further to the right the tool button is, the
>  > longer the distance to the tooltip becomes.
> 
> To the right of what - the left edge of the display or the left edge
> of

The offset is relative to the left and top edge of the display

> the Emacs frame?  Also IIUC x- and y-offsets are affected: Are they
> off
> by the same amounts or proportional to the size of the display?
> 

It seems to be proportional to the display

> What happens when you hold the Ctrl key together with a mouse click
> to
> show the Buffer or the Major Mode menus?  Are these menus off as
> well?
> 

Yes

>  > This happens with no emacs configuration (I hid my .emacs.d).
>  > I'm using a macbook pro with retina display 2800*1800, I don't
> remember
>  > setting any dpi scaling.
>  >
>  > This was working earlier, unfortunately I'm not sure exactly when
> it broke.
> 
> Could you try with an older Emacs?
> 

I compiled these versions:
emacs-24.4	same issue
emacs-25.1.50	same issue
emacs-23.4	WORKS (but has other issues)


> martin





^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#23231: Modeline popup menus appear below emacs window (off sceen)
  2016-04-07 22:08         ` Lars Hupfeldt Nielsen
@ 2016-04-08  7:18           ` martin rudalics
  0 siblings, 0 replies; 7+ messages in thread
From: martin rudalics @ 2016-04-08  7:18 UTC (permalink / raw)
  To: Lars Hupfeldt Nielsen; +Cc: 23231

 >>   > The further to the right the tool button is, the
 >>   > longer the distance to the tooltip becomes.
 >>
 >> To the right of what - the left edge of the display or the left edge
 >> of
 >
 > The offset is relative to the left and top edge of the display
 >
 >> the Emacs frame?  Also IIUC x- and y-offsets are affected: Are they
 >> off
 >> by the same amounts or proportional to the size of the display?
 >>
 >
 > It seems to be proportional to the display
 >
 >> What happens when you hold the Ctrl key together with a mouse click
 >> to
 >> show the Buffer or the Major Mode menus?  Are these menus off as
 >> well?
 >>
 >
 > Yes

All these indicate a problem with dpi scaling.  You might want to read
the following threads for comparison:

http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20619
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=21348
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22204

Maybe you could also try the patch proposed in one of them.

 > I compiled these versions:
 > emacs-24.4	same issue
 > emacs-25.1.50	same issue
 > emacs-23.4	WORKS (but has other issues)

Thanks.  I have no idea why this should work on emacs-23.4.  What are
the "other issues" you see there?

martin





^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-04-08  7:18 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-06 17:13 bug#23231: Modeline popup menus appear below emacs window (off sceen) Lars Hupfeldt Nielsen
2016-04-06 17:53 ` martin rudalics
2016-04-06 18:52   ` Lars Hupfeldt Nielsen
2016-04-06 19:00     ` Lars Hupfeldt Nielsen
2016-04-07  8:48       ` martin rudalics
2016-04-07 22:08         ` Lars Hupfeldt Nielsen
2016-04-08  7:18           ` martin rudalics

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).