Skip to content

Instantly share code, notes, and snippets.

@richardgv
richardgv / compton-border_size-debug.txt
Created September 9, 2012 11:36
chjj/compton: Debug output showing the regions of Chromium window border_size() reports
# 0x00801b43 is the outer frame of Chromium
border_size(0x008000fa): Border width = 0; Reported border rectangles:
Rec #0: 0, 0, 1440, 30
border_size(0x00800432): Border width = 0; Reported border rectangles:
Rec #0: 0, 0, 606, 353
# Here I started Chromium maximized, wrong bounding rectangles reported:
border_size(0x008000fa): Border width = 0; Reported border rectangles:
Rec #0: 0, 0, 1440, 30
@richardgv
richardgv / compton-new.txt
Created September 27, 2012 12:20
chjj/compton: Issue #47: Comparison of pidstat result of old/new compton
Linux 3.5.4-pf (home) 09/27/2012 _x86_64_ (8 CPU)
07:09:38 PM PID %usr %system %guest %CPU CPU Command
07:09:39 PM 11246 0.00 0.00 0.00 0.00 2 compton
07:09:40 PM 11246 1.00 0.00 0.00 1.00 1 compton
07:09:41 PM 11246 1.00 0.00 0.00 1.00 1 compton
07:09:42 PM 11246 1.00 0.00 0.00 1.00 0 compton
07:09:43 PM 11246 0.00 0.00 0.00 0.00 1 compton
07:09:44 PM 11246 1.00 0.00 0.00 1.00 2 compton
07:09:45 PM 11246 1.00 0.00 0.00 1.00 1 compton
@richardgv
richardgv / compton-new.txt
Created September 28, 2012 02:09
chjj/compton: Issue #47: Comparison of pidstat result of old/new compton, another time
Linux 3.5.4-pf (home) 09/28/2012 _x86_64_ (8 CPU)
09:41:36 AM PID %usr %system %guest %CPU CPU Command
09:41:37 AM 14073 0.00 0.00 0.00 0.00 2 compton
09:41:38 AM 14073 1.00 0.00 0.00 1.00 0 compton
09:41:39 AM 14073 1.00 0.00 0.00 1.00 0 compton
09:41:40 AM 14073 1.00 0.00 0.00 1.00 1 compton
09:41:41 AM 14073 1.00 0.00 0.00 1.00 1 compton
09:41:42 AM 14073 1.00 0.00 0.00 1.00 0 compton
09:41:43 AM 14073 2.00 0.00 0.00 2.00 1 compton
@richardgv
richardgv / compton-inactive-shadow-opacity.patch
Created November 22, 2012 13:27
chjj/compton #64: Add --inactive-shadow-opacity.
diff --git a/src/compton.c b/src/compton.c
index 6e2784f..b5b1fa9 100644
--- a/src/compton.c
+++ b/src/compton.c
@@ -1297,10 +1297,13 @@ paint_preprocess(session_t *ps, win *list) {
w->frame_alpha_pict = get_alpha_pict_d(ps, w->frame_opacity);
// Calculate shadow opacity
- if (w->frame_opacity)
- w->shadow_opacity = ps->o.shadow_opacity * w->frame_opacity;
@richardgv
richardgv / lgi-0.6.2.ebuild
Created November 27, 2012 13:49
lgi-0.6.2.ebuild
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=4
DESCRIPTION="dynamic Lua binding to GObject libraries using GObject-Introspection"
HOMEPAGE="https://github.com/pavouk/lgi"
SRC_URI="mirror://github/pavouk/lgi/${P}.tar.gz"
@richardgv
richardgv / compton-wip.patch
Last active December 10, 2015 09:18
chjj/compton #56: My work in progress (NOT USABLE right now!)
diff --git a/.gitignore b/.gitignore
index 475cacb..a11d54d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -38,4 +38,6 @@ oprofile_data/
compton.plist
callgrind.out.*
man/*.html
+man/*.1
doxygen/
@richardgv
richardgv / compton-select.patch
Created January 1, 2013 12:48
chjj/compton: Patch to use (p)select() instead of (p)poll()
diff --git a/src/compton.c b/src/compton.c
index eff195f..2e43bc8 100644
--- a/src/compton.c
+++ b/src/compton.c
@@ -4672,14 +4672,9 @@ lceil_ntimes(long dividend, long divisor) {
*/
static int
evpoll(session_t *ps, int timeout) {
- struct pollfd ufd = {
- .fd = ConnectionNumber(ps->dpy),
@richardgv
richardgv / compton-libevent.patch
Created January 2, 2013 13:06
chjj/compton: Patch to use libevent for the main loop
diff --git a/Makefile b/Makefile
index 10e6f17..bc0dcd2 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,6 @@
+# Use tab to indent recipe lines, spaces to indent other lines, otherwise
+# GNU make may get unhappy.
+
CC ?= gcc
@richardgv
richardgv / etc__portage__bashrc
Created January 26, 2013 13:51
Configuration to apply epatch_user() on every ebuild.
bashrc_call_epatch_user() {
[ -d ${S} ] && cd "${S}"
if type epatch_user > /dev/null 2>&1 \
&& type epatch > /dev/null 2>&1; then
epatch_user
else
. ${ROOT}etc/portage/env/epatch.sh
epatch_user
# To avoid issues when writing an ebuild
unset epatch
@richardgv
richardgv / backtrace.txt
Created March 29, 2013 00:43
fcitx-sogoupinyin-0.0.0: Segfault backtrace
Program received signal SIGSEGV, Segmentation fault.
0x00007ffff04fb05c in itl::ImmRBTree<wchar_t const*, t_envEntryBase const*, itl::CElementTraits<wcha
r_t const*>, itl::CElementTraits<t_envEntryBase const*>, itl::ImmPlexAllocDefault>::NewNode(wchar_t
const* const&, t_envEntryBase const* const&) () from /usr/lib64/fcitx/fcitx-sogoupinyin.so
#0 0x00007ffff04fb05c in itl::ImmRBTree<wchar_t const*, t_envEntryBase const*, itl::CElementTraits<wchar_t const*>, itl::CElementTraits<t_envEntryBase const*>, itl::ImmPlexAllocDefault>::NewNode(wchar_t const* const&, t_envEntryBase const* const&) () from /usr/lib64/fcitx/fcitx-sogoupinyin.so
No symbol table info available.
#1 0x00007ffff04fb5c6 in itl::ImmRBTree<wchar_t const*, t_envEntryBase const*, itl::CElementTraits<wchar_t const*>, itl::CElementTraits<t_envEntryBase const*>, itl::ImmPlexAllocDefault>::InsertImpl(wchar_t const* const&, t_envEntryBase const* const&) () from /usr/lib64/fcitx/fcitx-sogoupinyin.so
No symbol table info available.
#2 0x00007ffff04fb6