all repos — tint2 @ fae010e1ca9c4739e8786249be6aafa035fbe6f4

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

replace real_transparency option with an autodetect of composite manager.

git-svn-id: http://tint2.googlecode.com/svn/trunk@355 121b4492-b84c-0410-8b4c-0d4edfb3f3cc
thilor77 thilor77@121b4492-b84c-0410-8b4c-0d4edfb3f3cc
commit

fae010e1ca9c4739e8786249be6aafa035fbe6f4

parent

bfb9fc48320933bc8cf53169bd0ea2370b40adc8

3 files changed, 8 insertions(+), 2 deletions(-)

jump to
M src/config.csrc/config.c

@@ -295,8 +295,6 @@ else if (strcmp (key, "panel_dock") == 0)

panel_dock = atoi (value); else if (strcmp (key, "urgent_nb_of_blink") == 0) max_tick_urgent = (atoi (value) * 2) + 1; - else if (strcmp (key, "real_transparency") == 0) - real_transparency = atoi(value); else if (strcmp (key, "panel_layer") == 0) { if (strcmp(value, "bottom") == 0) panel_layer = BOTTOM_LAYER;
M src/server.csrc/server.c

@@ -69,6 +69,7 @@ server.atom._NET_WM_ICON = XInternAtom (server.dsp, "_NET_WM_ICON", False);

server.atom._NET_CLOSE_WINDOW = XInternAtom (server.dsp, "_NET_CLOSE_WINDOW", False); server.atom.UTF8_STRING = XInternAtom (server.dsp, "UTF8_STRING", False); server.atom._NET_SUPPORTING_WM_CHECK = XInternAtom (server.dsp, "_NET_SUPPORTING_WM_CHECK", False); + server.atom._NET_WM_CM_S0 = XInternAtom (server.dsp, "_NET_WM_CM_S0", False); server.atom._NET_SUPPORTING_WM_CHECK = XInternAtom (server.dsp, "_NET_WM_NAME", False); server.atom._NET_WM_STRUT_PARTIAL = XInternAtom (server.dsp, "_NET_WM_STRUT_PARTIAL", False); server.atom.WM_NAME = XInternAtom(server.dsp, "WM_NAME", False);

@@ -325,6 +326,12 @@ }

} } XFree (xvi); + + // check composite manager + if (XGetSelectionOwner(server.dsp, server.atom._NET_WM_CM_S0) == None) + real_transparency = 0; + else + real_transparency = 1; if (visual && real_transparency) { server.depth = 32;
M src/server.hsrc/server.h

@@ -51,6 +51,7 @@ Atom _NET_WM_ICON;

Atom _NET_CLOSE_WINDOW; Atom UTF8_STRING; Atom _NET_SUPPORTING_WM_CHECK; + Atom _NET_WM_CM_S0; Atom _NET_WM_STRUT_PARTIAL; Atom WM_NAME; Atom __SWM_VROOT;