6c27f4295b
When a new client appears, we reparent its window into a window of our choice so that we can add decorations. However, windows can be difficult making the reparenting fail. For example, some snapshots of GTK+ set a parent-relative background, which means that its parent windows have to have the same depth as the window itself. This makes reparenting fail if transparency is used/supported. Make the failure mode... different, by checking if reparenting succeeded. If it failed, we print an error message and unmanage the window immediately. This means that those GTK+ windows just do not appear at all, instead of behaving weirdly. This idea of this patch came from i3. Related-to: https://github.com/awesomeWM/awesome/issues/2279 Signed-off-by: Uli Schlachter <psychon@znc.in> |
||
---|---|---|
.. | ||
button.c | ||
button.h | ||
client.c | ||
client.h | ||
drawable.c | ||
drawable.h | ||
drawin.c | ||
drawin.h | ||
key.c | ||
key.h | ||
screen.c | ||
screen.h | ||
tag.c | ||
tag.h | ||
window.c | ||
window.h |