Skip to content
Snippets Groups Projects
  1. Jul 09, 2018
    • Daniel Stone's avatar
      helpers: Move static_assert definition to shared · 11f91bbd
      Daniel Stone authored
      
      Collect the fallback definitions of static_assert() from desktop-shell
      and the test shell, and move them to helpers.h. This allows code
      throughout the tree to use static_assert() for build-time assertions,
      where it is supported by the compiler.
      
      As GCC goes out of its way to only add static_assert() when C11 has been
      explicitly requested - which we don't do - make sure to use the more
      widely available _Static_assert() if that is provided.
      
      This will be used in future patches to ensure two array lengths don't go
      out of sync.
      
      Signed-off-by: default avatarDaniel Stone <daniels@collabora.com>
      Reviewed-by: default avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      11f91bbd
  2. Jun 20, 2018
  3. Feb 20, 2018
  4. Feb 09, 2018
  5. Feb 07, 2018
  6. Jan 18, 2018
    • Link Mauve's avatar
      xwm: Add icon support to the frame · 6b58ea8c
      Link Mauve authored and Daniel Stone's avatar Daniel Stone committed
      
      This fetches the _NET_WM_ICON property of the X11 window, and use the
      first image found as the frame icon.
      
      This has been tested with various X11 programs, and improves usability
      and user-friendliness a bit.
      
      Changes since v1:
      - Changed frame_button_create() to use
        frame_button_create_from_surface() internally.
      - Removed a check that should never have been commited.
      
      Changes since v2:
      - Request UINT32_MAX items instead of 2048, to avoid cutting valid
        icons.
      - Strengthen checks against malformed input.
      - Handle XCB_PROPERTY_DELETE to remove the icon.
      - Schedule a repaint if the icon changed.
      
      Changes since v3:
      - Keep the previous Cairo surface until the new one has been
        successfully loaded.
      - Use uint32_t for cardinals.  Unsigned is the same type except on
        16-bit machines, but uint32_t is clearer.
      - Declare length as uint32_t too, like in xcb_get_property_reply_t.
      
      Signed-off-by: default avatarEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>
      Reviewed-by: default avatarQuentin Glidic <sardemff7+git@sardemff7.net>
      6b58ea8c
  7. Dec 18, 2017
  8. Dec 05, 2017
  9. Dec 04, 2017
  10. Nov 27, 2017
  11. Oct 02, 2017
  12. Sep 29, 2017
  13. Jun 12, 2017
  14. May 23, 2017
    • Lyude Paul's avatar
      weston: Add support for "--foo bar" style options · 47bbdc72
      Lyude Paul authored and Morgane Glidic's avatar Morgane Glidic committed
      
      A little earlier today I ended up spending a lot of time trying to
      figure out why weston wasn't managing to launch over SSH and telling me
      that I did not have a --tty option specified, despite me passing the
      option strings ["--tty", "3"]. Turns out weston just doesn't support
      that.
      
      So, add support for this kind of format in addition to "--foo=bar" to
      save others from making the same mistake I did.
      
      Changes since v1:
       - Add comment about unreachable boolean check in long_option_with_arg()
       - Convert boolean check in long_option_with_arg() to assert
      
      Signed-off-by: Lyude Paul's avatarLyude <lyude@redhat.com>
      Reviewed-by: Eric Engestrom's avatarEric Engestrom <eric@engestrom.ch>
      Reviewed-by: default avatarQuentin Glidic <sardemff7+git@sardemff7.net>
      47bbdc72
  15. Mar 24, 2017
  16. Mar 13, 2017
  17. Mar 08, 2017
  18. Feb 21, 2017
  19. Jan 30, 2017
  20. Jan 03, 2017
  21. Nov 21, 2016
  22. Sep 26, 2016
  23. Sep 24, 2016
  24. Aug 27, 2016
  25. Aug 15, 2016
  26. Aug 14, 2016
Loading