xmag shows lower obscured window or black
When I first used xmag(1) many decades ago it would magnify the region selection as it was represented on the screen. Now, on Arch Linux with package xorg-xmag 1.0.6-2 installed there are odd behaviours.
- With two overlapping xclock(1)s, I get the expected result when magnifying a square that covers part of both as long as the point I click is over an xclock, its window-manager frame, or the desktop background which may or may not be the X server's root window.
- If an xfce4-terminal is behind the two xclocks and the pointer is clicked on it with the majority of the square over the xclocks then only the terminal is magnified, including pixels obscured by the xclocks.
- If xmag's own window overlaps an xclock and the pointer is clicked on the magnified view with the square overlapping the xclock then the location of the square is slid back to be wholly inside the xmag window and all of the xclock is excluded.
None of this behaviour is wanted. It isn't documented in xmag(1). It didn't used to happen. I've an idea there was a conversation about this a few years back but failed to find it.