Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2020
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.34 KB | None | 0 0
  1. diff --git a/PKGBUILD b/PKGBUILD
  2. index aca47b2..869ac02 100644
  3. --- a/PKGBUILD
  4. +++ b/PKGBUILD
  5. @@ -7,7 +7,7 @@
  6.  
  7.  pkgname=i3-wm-iconpatch
  8.  _pkgsourcename=i3
  9. -pkgver=4.17.1
  10. +pkgver=4.18.1
  11.  pkgrel=1
  12.  pkgdesc='An improved dynamic tiling window manager (with titlebar icon patch)'
  13.  arch=('i686' 'x86_64')
  14. @@ -29,9 +29,9 @@ options=('docs' '!strip')
  15.  source=("http://i3wm.org/downloads/${_pkgsourcename}-${pkgver}.tar.bz2"
  16.          "http://i3wm.org/downloads/${_pkgsourcename}-${pkgver}.tar.bz2.asc"
  17.          "iconsupport.patch")
  18. -sha1sums=('1834ce349a2aea2fbb0d44d9ed820fa9e1a394ab'
  19. +sha1sums=('7a9d3fb235ca9916065751b9bfe2307c25875e7c'
  20.            'SKIP'
  21. -          'd314df1acdd30d9297aaf7b2c1956908f0152d2c')
  22. +          'a5bcc549ef1e429485d9f247b4ed20dde6f88a8a')
  23.  validpgpkeys=('424E14D703E7C6D43D9D6F364E7160ED4AC8EE1D') # Michael Stapelberg
  24.  
  25.  prepare() {
  26. diff --git a/iconsupport.patch b/iconsupport.patch
  27. index f6df6e4..085f663 100644
  28. --- a/iconsupport.patch
  29. +++ b/iconsupport.patch
  30. @@ -158,9 +158,9 @@ index 790baba..cc88ee7 100644
  31.       DLOG("Managing window 0x%08x\n", window);
  32.  
  33.  @@ -177,6 +180,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
  34. -     window_update_class(cwindow, xcb_get_property_reply(conn, class_cookie, NULL), true);
  35. -     window_update_name_legacy(cwindow, xcb_get_property_reply(conn, title_cookie, NULL), true);
  36. -     window_update_name(cwindow, xcb_get_property_reply(conn, utf8_title_cookie, NULL), true);
  37. +     window_update_class(cwindow, xcb_get_property_reply(conn, class_cookie, NULL));
  38. +     window_update_name_legacy(cwindow, xcb_get_property_reply(conn, title_cookie, NULL));
  39. +     window_update_name(cwindow, xcb_get_property_reply(conn, utf8_title_cookie, NULL));
  40.  +    window_update_icon(cwindow, xcb_get_property_reply(conn, wm_icon_cookie, NULL));
  41.       window_update_leader(cwindow, xcb_get_property_reply(conn, leader_cookie, NULL));
  42.       window_update_transient_for(cwindow, xcb_get_property_reply(conn, transient_cookie, NULL));
  43. @@ -284,7 +284,7 @@ index 790baba..cc88ee7 100644
  44.       const int deco_width = (int)con->deco_rect.width;
  45.  +
  46.  +    /* Draw the icon */
  47. -+    if (win->icon) {
  48. ++    if (win && win->icon) {
  49.  +        uint16_t icon_size = con->deco_rect.height - 2 * logical_px(1);
  50.  +
  51.  +        int icon_offset_y = (con->deco_rect.height - icon_size) / 2;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement