Feature: Wintype-based focus exclusion

- Add "focus" to the wintypes settings in compton.conf, to mark windows
  of certain window types to be always focused. Replaces the ugly
  is_normal_win().

- Add a ON/OFF/UNSET switch_t type, but it's unused currently.

- Mark client_win if the window client detection hasn't been performed
  when we detect WM_STATE's presence in ev_property_notify(), for
  performance.
This commit is contained in:
Richard Grenville
2012-12-10 10:31:24 +08:00
parent 7d70f3dc13
commit 33171e8933
3 changed files with 43 additions and 12 deletions

View File

@@ -47,5 +47,5 @@ focus-exclude = [ ];
# Window type settings
wintypes:
{
tooltip = { fade = true; shadow = false; opacity = 0.75; };
tooltip = { fade = true; shadow = false; opacity = 0.75; focus = true; };
};