Implement floating windows
As of this commit, there's not-yet a way to resize or move floating
windows, but it's possible to create one and focus through all windows.
Floating windows are always above tiled windows and, if floating window
is focused, that window is always above any another floating windows.
Windows have a separate float_{x, y, width, height} to remember their
floating location if they go from float=>tiled=>float again.
This commit is contained in:
parent
fba4a3d087
commit
6d4352a217
7 changed files with 100 additions and 20 deletions
|
|
@ -172,6 +172,7 @@ fn windowManagerV1Listener(window_manager_v1: *river.WindowManagerV1, event: riv
|
|||
// and focus the first one
|
||||
first.pending_render.focused = true;
|
||||
}
|
||||
// We clear any orphaned_windows if an output is added
|
||||
output.windows.appendList(&wm.orphan_windows);
|
||||
},
|
||||
.seat => |ev| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue