all repos — openbox @ 42fbe726d4433a6a46ce1555f1d208d2971438e3

openbox fork - make it a bit more like ryudo

add the pixel to the cache
Dana Jansens danakj@orodu.net
commit

42fbe726d4433a6a46ce1555f1d208d2971438e3

parent

1b5d52c71669ad1837437deaadc061d8d7cfdd85

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M otk/rendercolor.hhotk/rendercolor.hh

@@ -27,8 +27,9 @@

private: struct CacheItem { GC gc; + unsigned long pixel; int count; - CacheItem(GC g) : gc(g), count(0) {} + CacheItem(GC g, unsigned long p) : gc(g), pixel(p), count(0) {} }; static std::map<unsigned long, CacheItem*> *_cache;