Skip to content
Snippets Groups Projects
  1. Sep 04, 2014
  2. Aug 22, 2014
    • Derek Foreman's avatar
      tests: allow running make check without make install · c7210434
      Derek Foreman authored and Pekka Paalanen's avatar Pekka Paalanen committed
      
      desktop shell and weston keyboard both refer to themselves prefixed by
      LIBEXECDIR, however this is only valid once installed.  make check will
      currently either fail or run pre-existing versions.
      
      This patch adds a way to override that location by setting the env var
      WESTON_BUILD_DIR - which is then set by the test env script so make check
      will test the versions in the build directory regardless of whether they're
      installed or not.
      
      Reviewed-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      c7210434
  3. Aug 19, 2014
  4. Jul 05, 2014
  5. May 01, 2014
  6. Apr 07, 2014
    • Andrew Wedgbury's avatar
      Make sure config.h is included before any system headers · 9cd661e7
      Andrew Wedgbury authored
      
      There was an issue recently in screen-share.c where config.h was not
      being included, resulting in the wrong definition for off_t being used on
      32 bit systems. I checked and I don't think this problem is happening
      elsewhere, but to help avoid this sort of problem in the future, I went
      through and made sure that config.h is included first whenever system
      headers are included.
      
      The config.h header should be included before any system headers, failing
      to do this can result in the wrong type sizes being defined on certain
      systems, e.g. off_t from sys/types.h
      
      Signed-off-by: default avatarAndrew Wedgbury <andrew.wedgbury@realvnc.com>
      9cd661e7
  7. Feb 06, 2014
    • Jasper St. Pierre's avatar
      xdg-shell: Add set_margin request · 74073454
      Jasper St. Pierre authored
      This is used to figure out the size of "invisible" decorations, which we'll
      use to better know the visible extents of the surface, which we can use for
      constraining, titlebars, and more.
      74073454
  8. Feb 01, 2014
  9. Jan 20, 2014
  10. Dec 03, 2013
    • Pekka Paalanen's avatar
      os: use posix_fallocate in creating sharable buffers · 5b4ddbc1
      Pekka Paalanen authored
      
      If posix_fallocate is available, use it instead of ftruncate. Unlike
      ftruncate, when posix_fallocate succeeds, it guarantees that you cannot
      run out of disk space, when later writing to the mmap()'ed file.
      
      With posix_fallocate, if os_create_anonymous_file() succeeds, the
      program cannot get a SIGBUS later from accessing this file via mmap. If
      there is insufficient disk space, the function fails and errno is set to
      ENOSPC.
      
      This is useful on systems, that limit the available buffer space by
      having XDG_RUNTIME_DIR on a small tmpfs.
      
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      5b4ddbc1
  11. Nov 08, 2013
  12. Oct 24, 2013
  13. Oct 14, 2013
  14. Sep 26, 2013
  15. Sep 22, 2013
  16. Aug 13, 2013
    • Armin K's avatar
      evdev-touchpad: Set some options using weston.ini · b502f906
      Armin K authored
      This patch adds 3 new options to weston.ini to allow
      the user to change default constant_accel_factor,
      min_accel_factor and max_accel_factor. If no options
      are set, it falls back using defaults as it did before.
      
      v2: create weston_config_section_get_double and use it
      instead of manualy converting string to double.
      
      v3: add default values in weston_config_get_double
      instead of using conditionals.
      
      v4: don't pass diagonal as pointer.
      b502f906
  17. Aug 08, 2013
  18. Jul 25, 2013
  19. Jul 08, 2013
  20. Jul 03, 2013
  21. Feb 07, 2012
  22. Jun 05, 2013
    • Daniel Stone's avatar
      configure.ac: Enable AC_USE_SYSTEM_EXTENSIONS · c228e23b
      Daniel Stone authored
      
      AC_USE_SYSTEM_EXTENSIONS enables _XOPEN_SOURCE, _GNU_SOURCE and similar
      macros to expose the largest extent of functionality supported by the
      underlying system.  This is required since these macros are often
      limiting rather than merely additive, e.g. _XOPEN_SOURCE will actually
      on some systems hide declarations which are not part of the X/Open spec.
      
      Since this goes into config.h rather than the command line, ensure all
      source is consistently including config.h before anything else,
      including system libraries.  This doesn't need to be guarded by a
      HAVE_CONFIG_H ifdef, which was only ever a hangover from the X.Org
      modular transition.
      
      Signed-off-by: default avatarDaniel Stone <daniel@fooishbar.org>
      
      [pq: rebased and converted more files]
      c228e23b
    • Pekka Paalanen's avatar
      shared: fix build of libshared-cairo · ab5dd94c
      Pekka Paalanen authored
      
      Another case of missing wayland-util.h, as we didn't pass any libwayland
      CFLAGS. This is triggerable on a system, where libwayland is installed
      in a custom prefix, and pixman, cairo, libpng, and webp are either
      not installed or are installed in the standard path.
      
      COMPOSITOR_CFLAGS contains more than just the libwayland CFLAGS, though.
      
      Signed-off-by: Pekka Paalanen's avatarPekka Paalanen <pekka.paalanen@collabora.co.uk>
      ab5dd94c
  23. May 28, 2013
  24. May 27, 2013
    • Kristian Høgsberg's avatar
      config-parser: Add section iterator API · f73f3162
      Kristian Høgsberg authored
      The X backend needs to iterate through all outputs.
      f73f3162
    • Mun Gwan-gyeong's avatar
      config-parser: Avoid null dereference when handling config-parser · 72a3ab7b
      Mun Gwan-gyeong authored
      backtrace:
       (gdb) bt
       #0  weston_config_get_section (config=0x0, section=0x8062f31 "keyboard", key=0x0, value=0x0)
           at config-parser.c:265
       #1  0x080535a1 in weston_compositor_init (ec=0x905b690, display=0x9056490, argc=0xbf8bd2f0,
           argv=0xbf8bd384, config_fd=-1) at compositor.c:2819
       #2  0xb75d72bb in x11_compositor_create (config_fd=-1, argv=0xbf8bd384, argc=<optimized out>,
           use_pixman=0, no_input=0, fullscreen=0, display=0x9056490) at compositor-x11.c:1527
       #3  backend_init (display=0x9056490, argc=0xbf8bd2f0, argv=0xbf8bd384, config_fd=-1)
           at compositor-x11.c:1746
      72a3ab7b
    • Mun Gwan-gyeong's avatar
      config-parser-test: fix compile error · d664196c
      Mun Gwan-gyeong authored
      Add COMPOSITOR_CFLAGS to Makefile.am
      d664196c
  25. May 24, 2013
    • Kristian Høgsberg's avatar
      Add new config parser · 73274711
      Kristian Høgsberg authored
      The current config parser, parses the ini file and pulls out the values
      specified by the struct config_section passed to parse_config_file() and
      then throw the rest away.  This means that every place we want to get
      info out of the ini file, we have to parse the whole thing again.  It's not
      a big overhead, but it's also not a convenient API.
      
      This patch adds a parser that parses the ini file to a data structure and
      puts that in weston_compositor->config along with API to query comfig
      keys from the data structure.  The old parser is still available, but
      we'll transition to the new approach over the next few commits.
      73274711
  26. May 14, 2013
    • Ossama Othman's avatar
      config-parser: Honor XDG_CONFIG_DIRS · a50e6e4c
      Ossama Othman authored
      
      This set of changes adds support for searching for a given config file
      in the directories listed in $XDG_CONFIG_DIRS if it wasn't found in
      $XDG_CONFIG_HOME or ~/.config.  This allows packages to install custom
      config files in /etc/xdg/weston, for example, thus allowing them to
      avoid dealing with home directories.
      
      To avoid a TOCTOU race the config file is actually open()ed during the
      search.  Its file descriptor is returned and stored in the compositor
      for later use when performing subsequent config file parses.
      
      Signed-off-by: default avatarOssama Othman <ossama.othman@intel.com>
      a50e6e4c
  27. Apr 04, 2013
Loading