summaryrefslogtreecommitdiffstats
path: root/compton.h
diff options
context:
space:
mode:
Diffstat (limited to 'compton.h')
-rw-r--r--compton.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/compton.h b/compton.h
index 1180ce32c..11325b75c 100644
--- a/compton.h
+++ b/compton.h
@@ -563,6 +563,20 @@ clear_cache_win_leaders(session_t *ps) {
static win *
find_toplevel2(session_t *ps, Window wid);
+/**
+ * Find matched window.
+ */
+static inline win *
+find_win_all(session_t *ps, const Window wid) {
+ if (!wid || PointerRoot == wid || wid == ps->root || wid == ps->overlay)
+ return NULL;
+
+ win *w = find_win(ps, wid);
+ if (!w) w = find_toplevel(ps, wid);
+ if (!w) w = find_toplevel2(ps, wid);
+ return w;
+}
+
static Window
win_get_leader_raw(session_t *ps, win *w, int recursions);
@@ -589,7 +603,7 @@ group_is_focused(session_t *ps, Window leader) {
for (win *w = ps->list; w; w = w->next) {
if (win_get_leader(ps, w) == leader && !w->destroyed
- && w->focused_real)
+ && win_is_focused_real(ps, w))
return true;
}
@@ -765,6 +779,9 @@ static inline void
win_set_focused(session_t *ps, win *w, bool focused);
static void
+win_on_focus_change(session_t *ps, win *w);
+
+static void
win_determine_fade(session_t *ps, win *w);
static void