Skip to content

Instantly share code, notes, and snippets.

Avatar

NikitaKarnauhov

View GitHub Profile
@NikitaKarnauhov
NikitaKarnauhov / muffin-4.8.1-unredirect-ignore-offscreen.patch
Created May 15, 2021
Patch to make muffin ignore offscreen windows when unredirecting
View muffin-4.8.1-unredirect-ignore-offscreen.patch
diff -ur muffin-4.8.1-orig/src/compositor/compositor.c muffin-4.8.1/src/compositor/compositor.c
--- muffin-4.8.1-orig/src/compositor/compositor.c 2021-01-14 16:47:56.000000000 +0700
+++ muffin-4.8.1/src/compositor/compositor.c 2021-05-15 18:29:05.519684385 +0700
@@ -1265,15 +1265,24 @@
GList *l;
MetaCompositor *compositor = data;
GSList *screens = compositor->display->screens;
- MetaWindowActor *top_window;
+ MetaWindowActor *top_window = NULL;
MetaWindowActor *expected_unredirected_window = NULL;
@NikitaKarnauhov
NikitaKarnauhov / tlrecode.sh
Created May 16, 2016
Shell script to decode and encode TP-LINK router config files
View tlrecode.sh
#!/usr/bin/env bash
# tlrecode.sh
# Decode and encode TP-LINK router config files.
#
# Creative Commons CC0 License:
# http://creativecommons.org/publicdomain/zero/1.0/
#
# To the extent possible under law, the person who associated CC0 with this
# work has waived all copyright and related or neighboring rights to this work.