Closed woodruffw closed 7 years ago
Just realized that this is what --xinerama-index
is probably for. Is there no to use just the absolute geometry?
Edit 1:
I ask because I use a single virtual screen across all of my monitors, causing --xinerama-index
to have no effect.
Edit 2:
For reference, xdotool windowmove <wid> <x> <y>
works correctly. I can look into how they do it and add it to feh
, if desired.
Edit 3:
Their relevant code involves an XConfigureWindow
call:
int xdo_move_window(const xdo_t *xdo, Window wid, int x, int y) {
XWindowChanges wc;
int ret = 0;
wc.x = x;
wc.y = y;
ret = XConfigureWindow(xdo->xdpy, wid, CWX | CWY, &wc);
return _is_success("XConfigureWindow", ret == 0, xdo);
}
I "fixed" a similar problem in mpv
by moving the eventual moving logic below the window mapping call (XMapWindow
). It seems like X11 isn't required to honor move/resize requests until after the window has been mapped, but I'm not certain about this.
In feh
's case, that means taking the geometry logic out of winwidget_create_window
and moving it into winwidget_show
(below the XMapWindow
call).
This is on feh 2.14, so feel free to close it if it's been fixed since then.
I've been trying to pin a
feh
process on my vertical monitor using an absolute geometry:However, this seems to cause
feh
to display the image on whatever monitor currently has the mouse. I've confirmed that this is the correct absolute geometry usingxwininfo
:I've also tried "-geometry" at the very bottom of that output, which results in the image being loaded in the upper left corner of the active monitor.
Let me know if you need any more information; I'm happy to provide screenshots and/or recordings of the behavior.