awesome/objects
Uli Schlachter 6c27f4295b client_manage(): Check that reparenting works (#2298)
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>
2018-07-22 16:05:11 -04:00
..
button.c doc: Remove the signal name hack 2018-05-28 14:11:41 -04:00
button.h Clean up header includes 2014-03-30 20:07:48 +02:00
client.c client_manage(): Check that reparenting works (#2298) 2018-07-22 16:05:11 -04:00
client.h C code: save all instead of just one client icons 2017-03-07 22:45:49 +01:00
drawable.c Remove @release @AWESOME_VERSION@ everywhere (#1157) 2016-10-09 22:36:20 +02:00
drawable.h drawable/drawin: Pass both lua_State and stack index around 2014-12-06 10:46:45 +01:00
drawin.c Remove systray_cleanup() from drawin_systray_kickout() (#2301) 2018-07-20 14:11:09 +03:00
drawin.h Partly fix removal of systray from a wibox 2017-03-11 18:14:38 +01:00
key.c doc: Remove the signal name hack 2018-05-28 14:11:41 -04:00
key.h remove encoding=utf-8 from modelines 2011-09-11 17:34:09 +02:00
screen.c screen_refresh(): Fake a screen when the last one is removed (#2223) 2018-06-28 15:36:53 +02:00
screen.h client_resize(): Stop trying to force on screen 2017-05-15 08:15:38 +02:00
tag.c tags: specify layout in add_tag doc snippet (#1950) 2017-08-07 14:35:39 -04:00
tag.h Attempt at better handling of NET_CURRENT_DESKTOP property. 2016-06-04 16:42:54 +03:00
window.c Make alpha work on window borders 2018-03-03 10:57:48 +01:00
window.h geometry: Use the relevant rounding functions instead of integers 2016-04-18 04:20:22 -04:00