diff options
| author | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-06 14:47:55 -0600 | 
|---|---|---|
| committer | Leonardo Hernández Hernández <leohdz172@protonmail.com> | 2022-12-24 16:44:09 -0600 | 
| commit | 7eaa01ac1f074511ae1013326172d51c6fdf8866 (patch) | |
| tree | f340f88ed76a03a19e13ce21f8b29e61c4487983 /client.h | |
| parent | 92e7752203eb7812f2d333f8c6af1963fa743c09 (diff) | |
Revert "Revert "fix flickering when resizing/spawning windows""
This reverts commit 4a32293548667e68cd9a103e22368b8db1754deb.
Diffstat (limited to '')
| -rw-r--r-- | client.h | 15 | 
1 files changed, 15 insertions, 0 deletions
| @@ -241,6 +241,21 @@ client_is_mapped(Client *c)  }  static inline int +client_is_rendered_on_mon(Client *c, Monitor *m) +{ +	/* This is needed for when you don't want to check formal assignment, +	 * but rather actual displaying of the pixels. +	 * Usually VISIBLEON suffices and is also faster. */ +	struct wlr_surface_output *s; +	if (!c->scene->node.enabled) +		return 0; +	wl_list_for_each(s, &client_surface(c)->current_outputs, link) +		if (s->output == m->wlr_output) +			return 1; +	return 0; +} + +static inline int  client_is_unmanaged(Client *c)  {  #ifdef XWAYLAND | 
