- Sep 04, 2014
-
-
Signed-off-by:
Xiong Zhang <panda0626@gmail.com> Tested-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- Aug 22, 2014
-
-
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 <pekka.paalanen@collabora.co.uk>
-
- Aug 19, 2014
-
-
Previously geometry was changed to leave space for titlebar if a frame has only buttons but no title. This patch fixes theme_render_frame to avoid transparent titlebar. Signed-off-by:
Boyan Ding <stu_dby@126.com>
-
- Jul 05, 2014
-
-
Boyan Ding authored
Title can decide the geometry of a frame because it may affect the existence of titlebar, so setting geometry_dirty in frame_set_title for potential change. Signed-off-by:
Boyan Ding <stu_dby@126.com>
-
Boyan Ding authored
There exist frames which have buttons without title such as a simple X application piped through xwayland which doesn't specify a title. We draw the title bar with buttons, but hide it under the window because geometry thinks a window needs titlebar only if it has title. This patch change the condition, making it titlebar is needed if a frame has title or has button(s), which makes more sense. Signed-off-by:
Boyan Ding <stu_dby@126.com>
-
- May 01, 2014
-
-
Jasper St. Pierre authored
This is substantially confusing to users, namely me. krh: Edited to just set grip size to zero.
-
Jasper St. Pierre authored
If !(x < margin), then clearly margin <= x. No need to test for it again.
-
- Apr 07, 2014
-
-
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:
Andrew Wedgbury <andrew.wedgbury@realvnc.com>
-
- Feb 06, 2014
-
-
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.
-
- Feb 01, 2014
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
-
- Jan 20, 2014
-
-
U. Artie Eoff authored
Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
U. Artie Eoff authored
In frame_create, we need to destroy any frame buttons created in preceding calls to frame_button_create during the function execution if any of the successive calls to frame_button_create fail. This has minimal severity since most, if not all, cases in frame_button_create that result in a fail (i.e. NULL result) means a program is OOM and the program will have to exit/abort anyway. Signed-off-by:
U. Artie Eoff <ullysses.a.eoff@intel.com>
-
- Dec 03, 2013
-
-
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 <pekka.paalanen@collabora.co.uk>
-
- Nov 08, 2013
-
-
Faith Ekstrand authored
This makes button handling more correct concerning drags. Also, frame_pointer_button returns the original button location in the case of a release. This makes filtering of button events much easier for users of the cair-util frame code. Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net>
-
- Oct 24, 2013
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
This gives us a nice frame and drop shadows for the menus.
-
- Oct 14, 2013
-
-
Faith Ekstrand authored
Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net>
-
Faith Ekstrand authored
Signed-off-by:
Jason Ekstrand <jason@jlekstrand.net>
-
- Sep 26, 2013
-
-
Alexandru DAMIAN authored
Adding a check in weston_config_full_path so that we don't crash if we started without a config file. Signed-off-by:
Alexandru DAMIAN <alexandru.damian@intel.com>
-
- Sep 22, 2013
-
-
Kristian Høgsberg authored
-
Kristian Høgsberg authored
Take a basename of the config file to parse instead of an fd.
-
Kristian Høgsberg authored
-
- Aug 13, 2013
-
-
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.
-
- Aug 08, 2013
-
-
Peter Hutterer authored
Same as calloc(1, len).
-
- Jul 25, 2013
-
-
Kristian Høgsberg authored
-
- Jul 08, 2013
-
-
Quentin Glidic authored
Signed-off-by:
Quentin Glidic <sardemff7+git@sardemff7.net>
-
- Jul 03, 2013
-
-
Quentin Glidic authored
Signed-off-by:
Quentin Glidic <sardemff7+git@sardemff7.net>
-
- Feb 07, 2012
-
-
Pekka Paalanen authored
One more wayland-util.h not found issue, triggered by having libwayland installed to a custom prefix. Signed-off-by:
Pekka Paalanen <pekka.paalanen@collabora.co.uk>
-
- Jun 05, 2013
-
-
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:
Daniel Stone <daniel@fooishbar.org> [pq: rebased and converted more files]
-
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 <pekka.paalanen@collabora.co.uk>
-
- May 28, 2013
-
-
Kristian Høgsberg authored
-
Mun Gwan-gyeong authored
backtrace: (gdb) bt #0 0xb7704424 in __kernel_vsyscall () #1 0xb757ddde in raise (sig=5) at ../nptl/sysdeps/unix/sysv/linux/pt-raise.c:42 #2 <signal handler called> #3 weston_config_destroy (config=0x0) at config-parser.c:508 #4 0xb75cbc0e in x11_destroy (ec=0x93506b0) at compositor-x11.c:1473 #5 0x0804e0e9 in main (argc=1, argv=0xbffe5354) at compositor.c:3337
-
Mun Gwan-gyeong authored
config-parser: Avoid null dereference when handling config-parser ( when weston starts without config file. ) backtrace: (gdb) bt #0 weston_config_next_section (config=0x0, section=0xbfb2b608, name=0xbfb2b618) at config-parser.c:485 #1 0xb75b1371 in x11_compositor_create (config=0x1, argv=0xbfb2ba44, argc=<optimized out>, use_pixman=0, no_input=0, fullscreen=0, display=0xb75b55f9) at compositor-x11.c:1582 #2 backend_init (display=0x8354490, argc=0xbfb2b9b0, argv=0xbfb2ba44, config=0x0) at compositor-x11.c:1674 #3 0x0804df7b in main (argc=1, argv=0xbfb2ba44) at compositor.c:3289
-
- May 27, 2013
-
-
Kristian Høgsberg authored
The X backend needs to iterate through all outputs.
-
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
-
Mun Gwan-gyeong authored
Add COMPOSITOR_CFLAGS to Makefile.am
-
- May 24, 2013
-
-
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.
-
- May 14, 2013
-
-
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:
Ossama Othman <ossama.othman@intel.com>
-
- Apr 04, 2013
-
-
Armin K authored
This prevents compiler warnings when using libpng 1.6 and GCC 4.8
-