Implement fullscreening
This commit is contained in:
parent
643d6c82ab
commit
92e82f38f5
3 changed files with 101 additions and 46 deletions
|
|
@ -8,6 +8,7 @@ pub const Command = union(enum) {
|
|||
spawn: []const []const u8,
|
||||
focus_next,
|
||||
focus_prev,
|
||||
fullscreen,
|
||||
close_window,
|
||||
exit,
|
||||
};
|
||||
|
|
@ -71,6 +72,11 @@ const XkbBinding = struct {
|
|||
}
|
||||
context.wm.window_manager_v1.manageDirty();
|
||||
},
|
||||
.fullscreen => {
|
||||
const seat = context.wm.seats.first() orelse return;
|
||||
const window = seat.focused orelse return;
|
||||
window.pending_state.fullscreen = !window.fullscreen;
|
||||
},
|
||||
.close_window => {
|
||||
const seat = context.wm.seats.first() orelse return;
|
||||
if (seat.focused) |window| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue