Hi,

I'm using the following code to add titlebars to floating windows:

|awful.hooks.property.register(function (c, prop)
  -- Remove the titlebar if fullscreen
  if c.fullscreen then
     awful.titlebar.remove(c)
  elseif not c.fullscreen then
    -- Add title bar for floating apps
    if c.titlebar == nil and awful.client.floating.get(c) then
       awful.titlebar.add(c, { modkey = modkey })
    -- Remove title bar, if it's not floating
    elseif c.titlebar and not awful.client.floating.get(c) then
       awful.titlebar.remove(c)
    end
  end
end)

|

On closing certain windows (e.g. the standard GTK file handler window in Emacs, or the options dialog in Firefox) a rectangle is left behind where the titlebar was, with the color theme.bg_normal. It sits on top of all other windows, can't be moved, and won't go away until I restart awesome. I'm using awesome Octopus on Arch with X.Org 1.12.3. Is this a problem with my code, is this a known bug, or am I just spectacularly unlucky?

Thanks in advance.

Reply via email to