diff options
author | Lars Rustand | 2020-07-05 22:10:31 +0200 |
---|---|---|
committer | Lars Rustand | 2020-07-05 22:10:31 +0200 |
commit | 695e3ad65c0579ddbc7bf71e3f4678bf3f2273f3 (patch) | |
tree | a27e7299611fba2bb78d726cbe846f6fc1f0f3c9 /iconsupport.patch | |
parent | 903c04e012d68827474624025ddc40107db8152d (diff) | |
download | aur-i3-wm-iconpatch.tar.gz |
Update to 4.18.1
Diffstat (limited to 'iconsupport.patch')
-rw-r--r-- | iconsupport.patch | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/iconsupport.patch b/iconsupport.patch index f6df6e4cbb24..085f66398677 100644 --- a/iconsupport.patch +++ b/iconsupport.patch @@ -158,9 +158,9 @@ index 790baba..cc88ee7 100644 DLOG("Managing window 0x%08x\n", window); @@ -177,6 +180,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki - window_update_class(cwindow, xcb_get_property_reply(conn, class_cookie, NULL), true); - window_update_name_legacy(cwindow, xcb_get_property_reply(conn, title_cookie, NULL), true); - window_update_name(cwindow, xcb_get_property_reply(conn, utf8_title_cookie, NULL), true); + window_update_class(cwindow, xcb_get_property_reply(conn, class_cookie, NULL)); + window_update_name_legacy(cwindow, xcb_get_property_reply(conn, title_cookie, NULL)); + window_update_name(cwindow, xcb_get_property_reply(conn, utf8_title_cookie, NULL)); + window_update_icon(cwindow, xcb_get_property_reply(conn, wm_icon_cookie, NULL)); window_update_leader(cwindow, xcb_get_property_reply(conn, leader_cookie, NULL)); window_update_transient_for(cwindow, xcb_get_property_reply(conn, transient_cookie, NULL)); @@ -284,7 +284,7 @@ index 790baba..cc88ee7 100644 const int deco_width = (int)con->deco_rect.width; + + /* Draw the icon */ -+ if (win->icon) { ++ if (win && win->icon) { + uint16_t icon_size = con->deco_rect.height - 2 * logical_px(1); + + int icon_offset_y = (con->deco_rect.height - icon_size) / 2; |