mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
fullscreen mostly implemented
This commit is contained in:
parent
a90c106b8c
commit
a5f5bba78e
6 changed files with 47 additions and 26 deletions
|
|
@ -238,7 +238,14 @@ fn handleRequestActivate(
|
|||
if(event.surface.data == null) return;
|
||||
|
||||
const scene_node_data: *SceneNodeData = @ptrCast(@alignCast(event.surface.data.?));
|
||||
|
||||
if(scene_node_data.* == .view) {
|
||||
if(server.seat.focused_output) |output| {
|
||||
if(output.fullscreen) |fullscreen| {
|
||||
server.seat.focusSurface(.{ .view = fullscreen });
|
||||
return;
|
||||
}
|
||||
}
|
||||
server.seat.focusSurface(Seat.FocusData{ .view = scene_node_data.view });
|
||||
} else {
|
||||
std.log.warn("Ignoring request to activate non-view", .{});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue