mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
Merge branch 'bouncing' into dev
This commit is contained in:
commit
d4a0abe762
11 changed files with 270 additions and 123 deletions
|
|
@ -238,8 +238,15 @@ fn handleRequestActivate(
|
|||
if(event.surface.data == null) return;
|
||||
|
||||
const scene_node_data: *SceneNodeData = @ptrCast(@alignCast(event.surface.data.?));
|
||||
|
||||
if(scene_node_data.* == .view) {
|
||||
scene_node_data.view.setFocused();
|
||||
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