aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/box.zig17
-rw-r--r--src/c.zig17
-rw-r--r--src/command.zig17
-rw-r--r--src/command/close_view.zig17
-rw-r--r--src/command/exit_compositor.zig17
-rw-r--r--src/command/focus_output.zig20
-rw-r--r--src/command/focus_tags.zig17
-rw-r--r--src/command/focus_view.zig17
-rw-r--r--src/command/modify_master_count.zig20
-rw-r--r--src/command/modify_master_factor.zig20
-rw-r--r--src/command/send_to_output.zig20
-rw-r--r--src/command/set_view_tags.zig17
-rw-r--r--src/command/spawn.zig20
-rw-r--r--src/command/toggle_float.zig17
-rw-r--r--src/command/toggle_tags.zig17
-rw-r--r--src/command/toggle_view_tags.zig17
-rw-r--r--src/command/zoom.zig17
-rw-r--r--src/config.zig17
-rw-r--r--src/cursor.zig17
-rw-r--r--src/decoration.zig17
-rw-r--r--src/decoration_manager.zig17
-rw-r--r--src/input_manager.zig17
-rw-r--r--src/keyboard.zig17
-rw-r--r--src/layer_surface.zig17
-rw-r--r--src/log.zig17
-rw-r--r--src/main.zig20
-rw-r--r--src/output.zig17
-rw-r--r--src/render.zig18
-rw-r--r--src/root.zig17
-rw-r--r--src/seat.zig20
-rw-r--r--src/server.zig17
-rw-r--r--src/test_main.zig17
-rw-r--r--src/view.zig17
-rw-r--r--src/view_stack.zig17
-rw-r--r--src/xdg_popup.zig20
-rw-r--r--src/xdg_toplevel.zig20
36 files changed, 631 insertions, 9 deletions
diff --git a/src/box.zig b/src/box.zig
index 2d28a1c..0ba3e63 100644
--- a/src/box.zig
+++ b/src/box.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const c = @import("c.zig");
diff --git a/src/c.zig b/src/c.zig
index 72bbc04..c36f0a0 100644
--- a/src/c.zig
+++ b/src/c.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
pub usingnamespace @cImport({
@cDefine("WLR_USE_UNSTABLE", {});
@cInclude("time.h");
diff --git a/src/command.zig b/src/command.zig
index 0c46c86..a6b8bec 100644
--- a/src/command.zig
+++ b/src/command.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Seat = @import("seat.zig");
pub const Direction = enum {
diff --git a/src/command/close_view.zig b/src/command/close_view.zig
index 774307a..1240d09 100644
--- a/src/command/close_view.zig
+++ b/src/command/close_view.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
diff --git a/src/command/exit_compositor.zig b/src/command/exit_compositor.zig
index 215f17f..d6c77f8 100644
--- a/src/command/exit_compositor.zig
+++ b/src/command/exit_compositor.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
diff --git a/src/command/focus_output.zig b/src/command/focus_output.zig
index 826eb29..188bd2d 100644
--- a/src/command/focus_output.zig
+++ b/src/command/focus_output.zig
@@ -1,6 +1,24 @@
-const c = @import("../c.zig");
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
+const c = @import("../c.zig");
+
const Arg = @import("../command.zig").Arg;
const Output = @import("../output.zig");
const Seat = @import("../seat.zig");
diff --git a/src/command/focus_tags.zig b/src/command/focus_tags.zig
index be2ce74..7ccd0e8 100644
--- a/src/command/focus_tags.zig
+++ b/src/command/focus_tags.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
diff --git a/src/command/focus_view.zig b/src/command/focus_view.zig
index 38fd531..85a2975 100644
--- a/src/command/focus_view.zig
+++ b/src/command/focus_view.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
diff --git a/src/command/modify_master_count.zig b/src/command/modify_master_count.zig
index 70a8ea5..f03c075 100644
--- a/src/command/modify_master_count.zig
+++ b/src/command/modify_master_count.zig
@@ -1,6 +1,24 @@
-const c = @import("../c.zig");
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
+const c = @import("../c.zig");
+
const Arg = @import("../command.zig").Arg;
const Seat = @import("../seat.zig");
diff --git a/src/command/modify_master_factor.zig b/src/command/modify_master_factor.zig
index 7c14fb8..e0ae8f4 100644
--- a/src/command/modify_master_factor.zig
+++ b/src/command/modify_master_factor.zig
@@ -1,6 +1,24 @@
-const c = @import("../c.zig");
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
+const c = @import("../c.zig");
+
const Arg = @import("../command.zig").Arg;
const Seat = @import("../seat.zig");
diff --git a/src/command/send_to_output.zig b/src/command/send_to_output.zig
index 2cf0fea..bece494 100644
--- a/src/command/send_to_output.zig
+++ b/src/command/send_to_output.zig
@@ -1,6 +1,24 @@
-const c = @import("../c.zig");
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
+const c = @import("../c.zig");
+
const Arg = @import("../command.zig").Arg;
const Output = @import("../output.zig");
const Seat = @import("../seat.zig");
diff --git a/src/command/set_view_tags.zig b/src/command/set_view_tags.zig
index 7c6c942..38ae677 100644
--- a/src/command/set_view_tags.zig
+++ b/src/command/set_view_tags.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
diff --git a/src/command/spawn.zig b/src/command/spawn.zig
index e4cfdd6..b9b9c95 100644
--- a/src/command/spawn.zig
+++ b/src/command/spawn.zig
@@ -1,6 +1,24 @@
-const c = @import("../c.zig");
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
+const c = @import("../c.zig");
+
const Arg = @import("../command.zig").Arg;
const Log = @import("../log.zig").Log;
const Seat = @import("../seat.zig");
diff --git a/src/command/toggle_float.zig b/src/command/toggle_float.zig
index 33a83fb..da16270 100644
--- a/src/command/toggle_float.zig
+++ b/src/command/toggle_float.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
diff --git a/src/command/toggle_tags.zig b/src/command/toggle_tags.zig
index c64b323..53242f8 100644
--- a/src/command/toggle_tags.zig
+++ b/src/command/toggle_tags.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
diff --git a/src/command/toggle_view_tags.zig b/src/command/toggle_view_tags.zig
index 0553152..5ae7874 100644
--- a/src/command/toggle_view_tags.zig
+++ b/src/command/toggle_view_tags.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
diff --git a/src/command/zoom.zig b/src/command/zoom.zig
index d3f52c3..617e4bb 100644
--- a/src/command/zoom.zig
+++ b/src/command/zoom.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const c = @import("../c.zig");
const Arg = @import("../command.zig").Arg;
diff --git a/src/config.zig b/src/config.zig
index 9baa4a2..6866f80 100644
--- a/src/config.zig
+++ b/src/config.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/cursor.zig b/src/cursor.zig
index 8113101..9f6fc78 100644
--- a/src/cursor.zig
+++ b/src/cursor.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/decoration.zig b/src/decoration.zig
index a75929a..fd49740 100644
--- a/src/decoration.zig
+++ b/src/decoration.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/decoration_manager.zig b/src/decoration_manager.zig
index 98ba696..5ba11c4 100644
--- a/src/decoration_manager.zig
+++ b/src/decoration_manager.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/input_manager.zig b/src/input_manager.zig
index 561e9fa..31ca0a7 100644
--- a/src/input_manager.zig
+++ b/src/input_manager.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/keyboard.zig b/src/keyboard.zig
index ff5fcf1..84c63a1 100644
--- a/src/keyboard.zig
+++ b/src/keyboard.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/layer_surface.zig b/src/layer_surface.zig
index 59857c7..33652a3 100644
--- a/src/layer_surface.zig
+++ b/src/layer_surface.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/log.zig b/src/log.zig
index b137b48..30d2564 100644
--- a/src/log.zig
+++ b/src/log.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
pub const Log = enum {
diff --git a/src/main.zig b/src/main.zig
index c20a762..e10e4dd 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -1,7 +1,25 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
+
const c = @import("c.zig");
-const Log = @import("log.zig").Log;
+const Log = @import("log.zig").Log;
const Server = @import("server.zig");
pub fn main() !void {
diff --git a/src/output.zig b/src/output.zig
index 6972f80..59d72c8 100644
--- a/src/output.zig
+++ b/src/output.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/render.zig b/src/render.zig
index 2184062..4b22011 100644
--- a/src/render.zig
+++ b/src/render.zig
@@ -1,4 +1,22 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const std = @import("std");
+
const c = @import("c.zig");
const Box = @import("box.zig");
diff --git a/src/root.zig b/src/root.zig
index b75511f..43f860d 100644
--- a/src/root.zig
+++ b/src/root.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/seat.zig b/src/seat.zig
index 67b2009..b69c1e9 100644
--- a/src/seat.zig
+++ b/src/seat.zig
@@ -1,8 +1,26 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
-const c = @import("c.zig");
const std = @import("std");
+const c = @import("c.zig");
+
const Cursor = @import("cursor.zig");
const InputManager = @import("input_manager.zig");
const Keyboard = @import("keyboard.zig");
diff --git a/src/server.zig b/src/server.zig
index e6c2bae..b0f7c5a 100644
--- a/src/server.zig
+++ b/src/server.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/test_main.zig b/src/test_main.zig
index 15888fc..2ed8247 100644
--- a/src/test_main.zig
+++ b/src/test_main.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
test "river test suite" {
_ = @import("view_stack.zig");
}
diff --git a/src/view.zig b/src/view.zig
index b6df85f..bc024f5 100644
--- a/src/view.zig
+++ b/src/view.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
const std = @import("std");
diff --git a/src/view_stack.zig b/src/view_stack.zig
index 86a3fce..41ead61 100644
--- a/src/view_stack.zig
+++ b/src/view_stack.zig
@@ -1,3 +1,20 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const View = @import("view.zig");
/// A specialized doubly-linked stack that allows for filtered iteration
diff --git a/src/xdg_popup.zig b/src/xdg_popup.zig
index 56e3580..ca06e5d 100644
--- a/src/xdg_popup.zig
+++ b/src/xdg_popup.zig
@@ -1,8 +1,26 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
-const c = @import("c.zig");
const std = @import("std");
+const c = @import("c.zig");
+
const XdgToplevel = @import("xdg_toplevel.zig");
/// The toplevel this popup is a child of
diff --git a/src/xdg_toplevel.zig b/src/xdg_toplevel.zig
index 4c7ca2e..a0153d4 100644
--- a/src/xdg_toplevel.zig
+++ b/src/xdg_toplevel.zig
@@ -1,8 +1,26 @@
+// This file is part of river, a dynamic tiling wayland compositor.
+//
+// Copyright 2020 Isaac Freund
+//
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <https://www.gnu.org/licenses/>.
+
const Self = @This();
-const c = @import("c.zig");
const std = @import("std");
+const c = @import("c.zig");
+
const Box = @import("box.zig");
const Log = @import("log.zig").Log;
const View = @import("view.zig");