Relicense to GPL 3.0

This commit is contained in:
Ottatop 2023-08-01 11:06:35 -05:00 committed by Ottatop
parent de30de73eb
commit 35eb1c7652
40 changed files with 713 additions and 584 deletions

View file

@ -1,21 +0,0 @@
name: Check MPL license headers
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
workflow_dispatch:
jobs:
check_headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install addlicense
run: go install github.com/google/addlicense@latest
- name: Check headers
run: $HOME/go/bin/addlicense -check -l mpl ./src

1048
LICENSE

File diff suppressed because it is too large Load diff

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---Input and keybinds
---@module InputModule

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---Output management
---@module OutputModule

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---The configuration entry point.
---@module PinnacleModule

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---This file houses LDoc documentation with dummy functions.---

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---Tag management
---@module TagModule

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---Window management
---@module WindowModule

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class InputModule
local input_module = {

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---@alias Modifier
---| "Alt" # The "Alt" key

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---@meta _

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class OutputModule
local output_module = {}

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
local socket = require("posix.sys.socket")
local msgpack = require("msgpack")

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---@diagnostic disable: redefined-local

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class TagModule
local tag_module = {}

View file

@ -1,8 +1,4 @@
-- This Source Code Form is subject to the terms of the Mozilla Public
-- License, v. 2.0. If a copy of the MPL was not distributed with this
-- file, You can obtain one at https://mozilla.org/MPL/2.0/.
--
-- SPDX-License-Identifier: MPL-2.0
-- SPDX-License-Identifier: GPL-3.0-or-later
---@class WindowModule
local window_module = {}

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
//! Pinnacle's configuration API.
//!

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
// The MessagePack format for these is a one-element map where the element's key is the enum name and its
// value is a map of the enum's values

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use smithay::{output::Output, reexports::wayland_server::protocol::wl_surface::WlSurface};

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
// from anvil
// TODO: figure out what this stuff does

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use std::{error::Error, sync::Mutex, time::Duration};

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use std::{io::Read, time::Duration};

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use smithay::{desktop::Window, output::Output, utils::IsAlive};

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
pub mod move_grab;
pub mod resize_grab;

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use smithay::{
desktop::Window,

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use smithay::{
desktop::Window,

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use std::time::Duration;

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use std::collections::HashMap;

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use itertools::{Either, Itertools};
use smithay::{

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
//! A very, VERY WIP Smithay-based Wayland compositor.
//!

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use std::cell::RefCell;

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use smithay::{
input::{

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use smithay::{
backend::renderer::{

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use smithay::{
backend::renderer::{

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use std::{
cell::RefCell,

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use std::{
cell::RefCell,

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use std::sync::atomic::AtomicU32;

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use std::{
cell::RefCell,

View file

@ -1,7 +1,3 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
pub mod request;

View file

@ -1,8 +1,4 @@
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.
//
// SPDX-License-Identifier: MPL-2.0
// SPDX-License-Identifier: GPL-3.0-or-later
use smithay::{
input::{pointer::Focus, Seat},