3 ms·
Are we able to change window position yet? One of the thing keeping me on X is the simple drop-down terminal, which I'm told is impossible on Wayland because Wa
by AdmiralAsshat 8y ago
Are we able to change window position yet? One of the thing keeping me on X is the simple drop-down terminal, which I'm told is impossible on Wayland because Wayland does not allow its applications to control the window position.
- Sir_Cmpwn 8y agoI gave a short talk at XDC which shows how sway & wlroots solves this problem: https://www.youtube.com/watch?v=VuRXHJu5Kmg https://www.youtube.com/watch?v=VuRXHJu5Kmg tl;dw: you can't set your position but a drop-down terminal is still in the cards
- AdmiralAsshat 8y agoHello, Drew! Thanks for responding. Having watched the video, it seems like we could do a "pop-in" terminal (which is how guake and tilix already do their "drop-down" mode because they let the WM actually do the drawing), but a true "drop-down" terminal a la Yakuake or the old id Quake consoles would require some additional functionality, since you'd essentially have to re-draw the application window at Y Pos +10 each time to give the effect of a moving window until it reached its final point. Is that possible?
- Sir_Cmpwn 8y agoYou can just animate the margin of the layer surface, which controls its distance from the edge. It can be negative.
- emersion 8y agoWe have designed a new Wayland protocol for this kind of apps: https://github.com/swaywm/wlr-protocols/blob/master/unstable/wlr-layer-shell-unstable-v1.xml https://github.com/swaywm/wlr-protocols/blob/master/unstable... So yes, it's possible. I'm not aware of any existing drop-down terminal using the protocol yet.