i3: Inconsistency in window frame offsetting
[Originally reported by lolilolicon@…]
(I notice the window frame in i3 is handled inconsistently between the left frame and the top (title bar) frame. For example, in my case, the title bar is 20 pixels in height, so if I run mpv --geometry +0+20 video.mkv
, the window frame is placed with its left-top corner at (0, 0)
; this is because i3 automatically shifts the mpv window 2 pixels (the size of the left frame/border) to the right, but does not automatically shift the mpv window down in the same manner. This results in unexpectedly that mpv --geometry +0+11
will make i3 put the mpv window at the center of the screen, presumably because i3 calculates that the left-top corner of the frame would be at (0, -9)
and decides to resort to putting it at the center of the screen.
The discussion above ignores the fact that the win_gravity of the mpv window is actually CenterGravity
, not NorthWestGravity
, which I think may change the expected resulting frame coordinates. (To be tested in Mutter when I get the chance).
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 16 (7 by maintainers)
Commits related to this issue
- floating_enable: change reassign logic This allows the floating container's top left corner to be mapped outside any output as long as they are contained partially by one. This, for example, will all... — committed to orestisfl/i3 by orestisfl 6 years ago
- floating_enable: change reassign logic This allows the floating container's top left corner to be mapped outside any output as long as they are contained partially by one. This, for example, will all... — committed to orestisfl/i3 by orestisfl 6 years ago
I think it would be nice if the problem was addressed, provided it can be addressed without a big amount of complexity (given that we’re talking about floating windows here).
From my reading of the discussion, I think the summary is “i3 places windows somewhere else than where users expect when they start applications with geometries like +0+0”.