Skip to content

Instantly share code, notes, and snippets.

@vl-80
vl-80 / fullscreen_titlebar.patch
Last active August 16, 2018 14:50
Blackbox fullscreen title bar patch
--- old/src/Window.cc 2005-10-18 04:01:41.000000000 -0400
+++ new/src/Window.cc 2018-08-16 10:23:47.852164406 -0400
@@ -167,6 +167,14 @@
if (!(decorations & WindowDecorationTitlebar))
functions &= ~WindowFunctionShade;
+ // Remove decorations for windows in fullscreen mode
+ if (ewmh.fullscreen) {
+ decorations = NoWindowDecorations;
+ functions &= ~(WindowFunctionMove |
@vl-80
vl-80 / sdl_openaudiodevice.cpp
Last active June 21, 2022 06:27
SDL_OpenAudioDevice() C++ example
#include <chrono>
#include <iostream>
#include <thread>
#include <SDL2/SDL.h>
void callback( void *, Uint8 * stream, int len )
{
memset( stream, 0, len );
}