apparance: close xprop when done with it

This commit is contained in:
Vincent Bernat 2012-07-09 08:30:40 +02:00
parent fcc3869022
commit bd4d90a46e

View file

@ -44,6 +44,7 @@ gtk3:close()
-- http://thread.gmane.org/gmane.comp.window-managers.awesome/9028
xprop = assert(io.popen("xprop -root _NET_SUPPORTING_WM_CHECK"))
wid = xprop:read():match("^_NET_SUPPORTING_WM_CHECK.WINDOW.: window id # (0x[%S]+)$")
xprop:close()
if wid then
wid = tonumber(wid) + 1
os.execute("xprop -id " .. wid .. " -format _NET_SYSTEM_TRAY_COLORS 32c " ..