Window menus either don't appear or appear on wrong monitor #2623

Open
AndreiArion opened this Issue Jan 3, 2017 · 4 comments

Projects

None yet

4 participants

@AndreiArion
AndreiArion commented Jan 3, 2017 edited

Output of i3 --moreversion 2>&- || i3 --version:
➜ ~ i3 --moreversion 2>&- || i3 --version
Binary i3 version: 4.13 (2016-11-08) © 2009 Michael Stapelberg and contributors
Running i3 version: 4.13 (2016-11-08) (pid 2082)o abort…)
Loaded i3 config: /home/aar/.i3/config (Last modified: Tue 30 Aug 2016 11:08:50 AM CEST, 10883695 seconds ago)

The i3 binary you just called: /usr/bin/i3
The i3 binary you are running: i3

➜ ~ i3 version output_
01/03/2017 09:26:01 AM - Additional arguments passed. Sending them as a command to i3.
[{"success":false,"parse_error":true,"error":"Expected one of these tokens: , '[', 'move', 'exec', 'exit', 'restart', 'reload', 'shmlog', 'debuglog', 'border', 'layout', 'append_layout', 'workspace', 'focus', 'kill', 'open', 'fullscreen', 'sticky', 'split', 'floating', 'mark', 'unmark', 'resize', 'rename', 'nop', 'scratchpad', 'title_format', 'mode', 'bar'","input":"version output_","errorposition":"^^^^^^^^^^^^^^^"}]

URL to a logfile as per http://i3wm.org/docs/debugging.html:
http://logs.i3wm.org/logs/5698125863845888.bz2

What I did:
Same issue as #1038 the menu windows are opening on the wrong screen.

What I saw:
The menu windows are opening on the wrong screen or not showing at all depending on the position of the screns..

emacs/chrome/gnome-terminal, they all show the bug. Menu windows, context windows etc..

My left screen is in portrait mode and my right one is landscape (as shown in layout).
All the windows menus that I try to open on the left screen are showing on the right one (or are not displayed at all if the window is too low on the portrait screen).

What I expected instead:
The window menus should open on the same screen.

** Extra info for debugging: **
_NET_DESKTOP_VIEWPORT is wrong ?!

➜ ~ xprop -root
ESETROOT_PMAP_ID(PIXMAP): pixmap id # 0x1600001
_XROOTPMAP_ID(PIXMAP): pixmap id # 0x1600001
AT_SPI_BUS(STRING) = "unix:abstract=/tmp/dbus-Qo1u0bGhSS,guid=dd1b1ecd2a52f32d8da71c25585d7e13"
GDK_VISUALS(INTEGER) = 180, 112
_NET_DESKTOP_VIEWPORT(CARDINAL) = 1080, 0, 0, 0, 0, 0
_NET_DESKTOP_NAMES(UTF8_STRING) = "7", "1", "2"
_NET_NUMBER_OF_DESKTOPS(CARDINAL) = 3
_NET_CURRENT_DESKTOP(CARDINAL) = 1
I3_SHMLOG_PATH(UTF8_STRING) =
I3_CONFIG_PATH(UTF8_STRING) = "/home/aar/.i3/config"
I3_PID(CARDINAL) = 2082
I3_SOCKET_PATH(UTF8_STRING) = "/run/user/1000/i3/ipc-socket.2082"
_NET_ACTIVE_WINDOW(WINDOW): window id # 0x200004d
_NET_CLIENT_LIST(WINDOW): window id # 0x1e00079, 0x1800003, 0x2000006, 0x200004d, 0x140008b
_NET_CLIENT_LIST_STACKING(WINDOW): window id # 0x1800003, 0x1e00079, 0x2000006, 0x200004d, 0x140008b
_NET_SUPPORTED(ATOM) = _NET_SUPPORTED, _NET_SUPPORTING_WM_CHECK, _NET_WM_NAME, _NET_WM_VISIBLE_NAME, _NET_WM_MOVERESIZE, _NET_WM_STATE_STICKY, _NET_WM_STATE_FULLSCREEN, _NET_WM_STATE_DEMANDS_ATTENTION, _NET_WM_STATE_MODAL, _NET_WM_STATE_HIDDEN, _NET_WM_STATE, _NET_WM_WINDOW_TYPE, _NET_WM_WINDOW_TYPE_NORMAL, _NET_WM_WINDOW_TYPE_DOCK, _NET_WM_WINDOW_TYPE_DIALOG, _NET_WM_WINDOW_TYPE_UTILITY, _NET_WM_WINDOW_TYPE_TOOLBAR, _NET_WM_WINDOW_TYPE_SPLASH, _NET_WM_WINDOW_TYPE_MENU, _NET_WM_WINDOW_TYPE_DROPDOWN_MENU, _NET_WM_WINDOW_TYPE_POPUP_MENU, _NET_WM_WINDOW_TYPE_TOOLTIP, _NET_WM_WINDOW_TYPE_NOTIFICATION, _NET_WM_DESKTOP, _NET_WM_STRUT_PARTIAL, _NET_CLIENT_LIST, _NET_CLIENT_LIST_STACKING, _NET_CURRENT_DESKTOP, _NET_NUMBER_OF_DESKTOPS, _NET_DESKTOP_NAMES, _NET_DESKTOP_VIEWPORT, _NET_ACTIVE_WINDOW, _NET_CLOSE_WINDOW
_NET_WM_NAME(UTF8_STRING) = "i3"
_NET_SUPPORTING_WM_CHECK(WINDOW): window id # 0x20003e
RESOURCE_MANAGER(STRING) = "Xft.dpi:\t96\nXft.hinting:\ttrue\nXft.hintstyle:\thintmedium\n"
_XKB_RULES_NAMES(STRING) = "evdev", "pc105", "us", "", ""
XFree86_has_VT(INTEGER) = 1
XFree86_VT(INTEGER) = 2

Thanks of looking into this :)

@stapelberg stapelberg removed the missing-log label Jan 3, 2017
@stapelberg
Member

_NET_DESKTOP_VIEWPORT is wrong ?!

Where does this come from? Is this a message from a program you’re running? If so, which one? If it’s your opinion, what makes you believe the contents of _NET_DESKTOP_VIEWPORT are wrong?

@Airblader Airblader added the bug label Jan 3, 2017
@Airblader
Member
Airblader commented Jan 3, 2017 edited

Can you also please specify what application(s) you were testing with and what menus exactly you were opening? This helps to reproduce and to read the log file.

Usually context menus are override_redirect windows and therefore not handled by i3 at all.

@Airblader Airblader added the needs info label Jan 3, 2017
@AndreiArion

@stapelberg it was only a supposition, I don't know what NET_DESKTOP_VIEWPORT should display with my current layout that you'll find below:

[aar@localhost .screenlayout]$ cat external.sh
#!/bin/sh
xrandr --output VIRTUAL1 --off --output eDP1 --off --output DP1 --off --output HDMI3 --off --output HDMI2 --off --output HDMI1 --mode 2048x1152 --pos 1080x0 --rotate normal --output VGA1 --off --output DP2 --mode 1920x1080 --pos 0x0 --rotate left

If it can help I can attach my ps auxf output.

@AndreiArion

@Airblader emacs/chrome/gnome-terminal, they all show the bug. Menu windows, context windows etc..

My left screen is in portrait mode and my right one is landscape (as shown in layout).
All the windows menus that I try to open on the left screen are showing on the right one (or are not displayed at all if the window is too low on the portrait screen).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment