New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
differentiate between floating and tiled in rects and only apply tileWindow
to tiled windows
#207
base: master
Are you sure you want to change the base?
Conversation
…eWindow` to tiled windows
Doesn't kill them completely, moving and resizing using the mouse still works, but other changes to window size/location seem to be ignored:
Both of these are expected, I guess, as you removed the call that is meant to sync xmonad's view of window placement with the X server. |
I can think about what to do with |
Wait. For whatever reason recompiling and restarting xmonad was not enough. After reboot the problem is fixed (at least for this dialog). |
@wedens Reboot shouldn't be needed, but just a recompile/restart may not be enough on a non-traditional distro like NixOS. I'd look that way. (But this is off-topic here.) |
Mod-shift-space after restart?
…On 6/11/20, Tomáš Janoušek ***@***.***> wrote:
@wedens Reboot shouldn't be needed, but just a recompile/restart may not be
enough on a non-traditional distro like NixOS. I'd look that way. (But this
is off-topic here.)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#207 (comment)
--
brandon s allbery kf8nh
allbery.b@gmail.com
|
On NixOS the binary may end up in an entirely different location as the path is a hash of the sources that produced it... |
Seems like this MR breaks moving floating windows with mod+left (default binding) mouse button. It moves the window and also resizes it. |
That's a good point. Before this PR, Anyway, I think a better fix for the issue (#198, rather than #81, because I don't think xmonad is ever going to become a reparenting WM that draws borders outside) would be to adjust the But then, we don't really know the border width is 0… it could well be something else if the window was created with a border. So perhaps an even better fix would be to adjust the floating It'll likely mess up fullscreen windows, especially games, somewhat, but I can't foresee how exactly. We'll have to try. Another idea, possibly the simplest to implement, is to just add a manageHook that corrects for the difference in border widths. One could conditionally use this for ordinary floats and skip games/fullscreens as those won't end up having borders anyway. |
Hm, but all these ideas of mine seem impossible to make play nice with https://xmonad.github.io/xmonad-docs/xmonad-contrib/XMonad-Layout-NoBorders.html. That's a bit unfortunate. And yeah, with |
Merge the Chrome hack to core? 😉 |
That's a different issue. What I was talking about here is that X.L.NoBorders changes the border width a lot and the mechanics of whether a window ends up having a border or not are quite complex, so the only place we can reliably adjust the floating rect is X.L.NoBorders itself. But! All this border width adjustment happens in We'd need to use something like https://xmonad.github.io/xmonad-docs/xmonad-contrib-0.18.0.9/XMonad-Util-ActionQueue.html (which was introduced for the implementation of https://xmonad.github.io/xmonad-docs/xmonad-contrib-0.18.0.9/XMonad-Hooks-BorderPerWindow.html, another border-related thingy, lol) to adjust the floating rects afterwards, which would double the already quite annoying flickering of X.L.NoBorders. And it's entirely possible this would result in endless loops, so we'd need a circuit-breaker somewhere. It's just gets super ugly. I'll need to sleep on this. |
(suppose now's the time to look at @LSLeary's pull requests as some of the problems I'm anticipating here are probably solved by the design changes in those PRs… this got out of hand quite quickly 🙂) |
This addresses #81. There's not much to test but if this totally kills the behavior of floating windows let me know and I'll see what other workarounds I can put in.
Checklist
I've read CONTRIBUTING.md
I've confirmed these changes don't belong in xmonad-contrib instead
I tested my changes with xmonad-testing
I updated the
CHANGES.md
file