diff options
Diffstat (limited to 'src/output.zig')
| -rw-r--r-- | src/output.zig | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/output.zig b/src/output.zig index 6eea72e..593caac 100644 --- a/src/output.zig +++ b/src/output.zig @@ -138,6 +138,9 @@ pub const WindowOutput = struct { const self = allocator.create(WindowOutput) catch unreachable; c.glfwDefaultWindowHints(); + c.glfwWindowHint(c.GLFW_FOCUSED, c.GLFW_FALSE); + c.glfwWindowHint(c.GLFW_FLOATING, c.GLFW_TRUE); + c.glfwWindowHint(c.GLFW_TRANSPARENT_FRAMEBUFFER, c.GL_TRUE); self.* = .{ .constants = constants, @@ -173,7 +176,10 @@ pub const WindowOutput = struct { return true; c.glfwMakeContextCurrent(self.window); + c.glClearColor(0, 0, 0, 1); c.glClear(c.GL_COLOR_BUFFER_BIT); + c.glfwWindowHint(c.GLFW_RESIZABLE, c.GLFW_FALSE); + c.glfwWindowHint(c.GLFW_DECORATED, c.GLFW_FALSE); if (self.resized) { var width: c_int = undefined; |
