Skip to content

Commit ddbf6da

Browse files
committed
Port X11 windowing code to support Wayland
1 parent c30af84 commit ddbf6da

17 files changed

+2197
-11
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//go:build linux && !android
22

33
/******************************************************************************/
4-
/* keyboard.x11.go */
4+
/* keyboard.linux.go */
55
/******************************************************************************/
66
/* This file is part of */
77
/* KAIJU ENGINE */

src/platform/windowing/linux.h

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/******************************************************************************/
2+
/* linux.h */
3+
/******************************************************************************/
4+
/* This file is part of */
5+
/* KAIJU ENGINE */
6+
/* https://kaijuengine.com/ */
7+
/******************************************************************************/
8+
/* MIT License */
9+
/* */
10+
/* Copyright (c) 2023-present Kaiju Engine authors (AUTHORS.md). */
11+
/* Copyright (c) 2015-present Brent Farris. */
12+
/* */
13+
/* May all those that this source may reach be blessed by the LORD and find */
14+
/* peace and joy in life. */
15+
/* Everyone who drinks of this water will be thirsty again; but whoever */
16+
/* drinks of the water that I will give him shall never thirst; John 4:13-14 */
17+
/* */
18+
/* Permission is hereby granted, free of charge, to any person obtaining a */
19+
/* copy of this software and associated documentation files (the "Software"), */
20+
/* to deal in the Software without restriction, including without limitation */
21+
/* the rights to use, copy, modify, merge, publish, distribute, sublicense, */
22+
/* and/or sell copies of the Software, and to permit persons to whom the */
23+
/* Software is furnished to do so, subject to the following conditions: */
24+
/* */
25+
/* The above copyright, blessing, biblical verse, notice and */
26+
/* this permission notice shall be included in all copies or */
27+
/* substantial portions of the Software. */
28+
/* */
29+
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS */
30+
/* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
31+
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. */
32+
/* IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY */
33+
/* CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT */
34+
/* OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE */
35+
/* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
36+
/******************************************************************************/
37+
38+
#ifndef WINDOWING_LINUX_H
39+
#define WINDOWING_LINUX_H
40+
41+
#ifdef USE_WAYLAND
42+
#include "wayland.h"
43+
#else
44+
#include "x11.h"
45+
#endif
46+
47+
#endif
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
//go:build (linux || darwin) && !android
1+
//go:build (linux || darwin) && !android && !wayland
22

33
/******************************************************************************/
4-
/* x11.vk.go */
4+
/* linux.vk.go */
55
/******************************************************************************/
66
/* This file is part of */
77
/* KAIJU ENGINE */

0 commit comments

Comments
 (0)