platform/upstream/wayland.git
13 years agowayland-egl: Define WL_EGL_PLATFORM in wayland-egl.h
Kristian Høgsberg [Wed, 9 Feb 2011 15:50:06 +0000 (10:50 -0500)]
wayland-egl: Define WL_EGL_PLATFORM in wayland-egl.h

This indicates that we're using the wayland egl platform and will make
eglplatform.h typedef the native types correctly.

13 years agocompositor-x11: Don't send enter/leave notify if we have an implicit grab
Kristian Høgsberg [Tue, 8 Feb 2011 16:59:53 +0000 (11:59 -0500)]
compositor-x11: Don't send enter/leave notify if we have an implicit grab

13 years agoAdd struct wl_egl_display argument to wl_egl_window_create
Kristian Høgsberg [Tue, 8 Feb 2011 01:48:01 +0000 (20:48 -0500)]
Add struct wl_egl_display argument to wl_egl_window_create

We don't need it in the mesa implementation, but other implementations
might and it's symmetric with wl_egl_pixmap_create().

13 years agoPrint object interface name when printing message arguments in debug mode
Kristian Høgsberg [Mon, 7 Feb 2011 21:05:36 +0000 (16:05 -0500)]
Print object interface name when printing message arguments in debug mode

13 years agoFollow wayland-egl renames
Kristian Høgsberg [Mon, 7 Feb 2011 15:30:38 +0000 (10:30 -0500)]
Follow wayland-egl renames

13 years agocompositor: Implement super-tab window switching
Kristian Høgsberg [Sun, 6 Feb 2011 21:54:59 +0000 (16:54 -0500)]
compositor: Implement super-tab window switching

13 years agocompositor: Set repaint_on_timeout when we schedule a timeout repaint
Kristian Høgsberg [Sun, 6 Feb 2011 17:58:44 +0000 (12:58 -0500)]
compositor: Set repaint_on_timeout when we schedule a timeout repaint

13 years agosimple-client: Port to wayland-egl and use eglSwapBuffers()
Kristian Høgsberg [Fri, 4 Feb 2011 20:31:33 +0000 (15:31 -0500)]
simple-client: Port to wayland-egl and use eglSwapBuffers()

simple-client is simpler.

13 years agogears: Remove unused drm_fd field
Kristian Høgsberg [Fri, 4 Feb 2011 19:14:23 +0000 (14:14 -0500)]
gears: Remove unused drm_fd field

13 years agoPort window.c to use wayland-egl
Kristian Høgsberg [Fri, 4 Feb 2011 19:11:33 +0000 (14:11 -0500)]
Port window.c to use wayland-egl

13 years agoAdd wayland-egl.h
Benjamin Franzke [Fri, 4 Feb 2011 10:22:35 +0000 (11:22 +0100)]
Add wayland-egl.h

This header defines native EGL wayland types and affiliated
initialization, processing and destruction routines.
EGL implementations must implement this API in order to allow
applications using this native types for the EGL implementation.

13 years agoUpdate compositor initiated resize to use a 3x3 grid
Kristian Høgsberg [Wed, 2 Feb 2011 01:28:32 +0000 (20:28 -0500)]
Update compositor initiated resize to use a 3x3 grid

This lets us do all combinations of resize edges.

13 years agocompositor: Calculate resizing direction
Benjamin Franzke [Tue, 1 Feb 2011 15:30:31 +0000 (16:30 +0100)]
compositor: Calculate resizing direction

This applies to resizes initiated by the compositor.

13 years agowindow: add null checks
nobled [Tue, 1 Feb 2011 18:51:47 +0000 (18:51 +0000)]
window: add null checks

Also check for invalid parameters early on, so if we crash,
we know *why* we crashed.

13 years agoadd newlines in error messages
nobled [Tue, 1 Feb 2011 18:48:46 +0000 (18:48 +0000)]
add newlines in error messages

13 years agoconnection: Handle broken pipes in sendmsg
Benjamin Franzke [Sat, 29 Jan 2011 12:12:39 +0000 (13:12 +0100)]
connection: Handle broken pipes in sendmsg

13 years agoFix out of source build [wayland.png]
Benjamin Franzke [Sat, 29 Jan 2011 08:51:57 +0000 (09:51 +0100)]
Fix out of source build [wayland.png]

13 years agoAdd wayland.png to .gitignore
Tim Wiederhake [Sat, 29 Jan 2011 00:30:25 +0000 (01:30 +0100)]
Add wayland.png to .gitignore

13 years agoDon't crash when the previous keyboard surface goes away
Kristian Høgsberg [Fri, 28 Jan 2011 20:53:07 +0000 (15:53 -0500)]
Don't crash when the previous keyboard surface goes away

Just always set keyboard focus to the top surface.

13 years agoAdd initial basic support for fullscreen surfaces
Kristian Høgsberg [Fri, 28 Jan 2011 20:18:33 +0000 (15:18 -0500)]
Add initial basic support for fullscreen surfaces

13 years agoMerge remote branch 'nobled/for-krh'
Kristian Høgsberg [Fri, 28 Jan 2011 16:21:42 +0000 (11:21 -0500)]
Merge remote branch 'nobled/for-krh'

13 years agoconfigure: Drop gdk-pixbuf version dependency
Benjamin Franzke [Fri, 28 Jan 2011 15:05:46 +0000 (16:05 +0100)]
configure: Drop gdk-pixbuf version dependency

The major version 2.0 is sufficient

13 years agofix configure check for gcc
nobled [Fri, 28 Jan 2011 13:47:21 +0000 (13:47 +0000)]
fix configure check for gcc

This shouldn't fail just because someone sets CC=gcc-4.5
explicitly. Besides, this way it also works with compilers
that advertise GCC-compatibility like clang and ICC.

13 years agocompositor-wayland: Handle keyboard focus too
Kristian Høgsberg [Fri, 28 Jan 2011 01:18:17 +0000 (20:18 -0500)]
compositor-wayland: Handle keyboard focus too

13 years agocompositor-x11: Handle keyboard focus correctly so we avoid stuck modifiers
Kristian Høgsberg [Thu, 27 Jan 2011 16:57:19 +0000 (11:57 -0500)]
compositor-x11: Handle keyboard focus correctly so we avoid stuck modifiers

13 years agoDon't create buffer from NULL pointer
Tim Wiederhake [Thu, 27 Jan 2011 00:32:36 +0000 (01:32 +0100)]
Don't create buffer from NULL pointer

Fixes regression introduced in f58d8ca1bd20180bfae3a3a047e8098e0b22b5aa.

13 years agocompositor: Forward pointer focus notification from compostor backend
Kristian Høgsberg [Thu, 27 Jan 2011 01:35:07 +0000 (20:35 -0500)]
compositor: Forward pointer focus notification from compostor backend

This lets the compositor place the pointer sprite correctly when it receives
pointer focus and allows it to send pointer focus to any client that might
receive pointer focus as the compositor receives it.

13 years agoTest for rsvg-convert in configure.ac
Kristian Høgsberg [Wed, 26 Jan 2011 20:33:24 +0000 (15:33 -0500)]
Test for rsvg-convert in configure.ac

If it's not present, we just don't install the icon.

13 years agocompositor-x11: Set window icon
Kristian Høgsberg [Wed, 26 Jan 2011 19:37:07 +0000 (14:37 -0500)]
compositor-x11: Set window icon

13 years agoSet WM_CLASS for X11 compositor window
Kristian Høgsberg [Wed, 26 Jan 2011 19:02:31 +0000 (14:02 -0500)]
Set WM_CLASS for X11 compositor window

Don't want to be 'Unknown' in GNOME Shell.

13 years agoconnection: Also consume message data in error cases
Kristian Høgsberg [Wed, 26 Jan 2011 16:46:35 +0000 (11:46 -0500)]
connection: Also consume message data in error cases

13 years agoshm: Check width, height and stride for invalid values
Kristian Høgsberg [Wed, 26 Jan 2011 16:46:05 +0000 (11:46 -0500)]
shm: Check width, height and stride for invalid values

13 years agoScreenshots were upside down
Tim Wiederhake [Tue, 25 Jan 2011 21:39:00 +0000 (22:39 +0100)]
Screenshots were upside down

13 years agoAdd gio for view fixes
Kristian Høgsberg [Tue, 25 Jan 2011 21:38:41 +0000 (16:38 -0500)]
Add gio for view fixes

13 years agoclients/view: Fix memory leak
Tim Wiederhake [Tue, 25 Jan 2011 21:22:00 +0000 (22:22 +0100)]
clients/view: Fix memory leak

13 years agoclients/view: Don't try to show inexistant files
Tim Wiederhake [Tue, 25 Jan 2011 21:21:59 +0000 (22:21 +0100)]
clients/view: Don't try to show inexistant files

13 years agoclients/view: Allow relative paths
Tim Wiederhake [Tue, 25 Jan 2011 21:21:58 +0000 (22:21 +0100)]
clients/view: Allow relative paths

13 years agoclients/view: Add mousewheel and arrow keys
Tim Wiederhake [Tue, 25 Jan 2011 21:21:57 +0000 (22:21 +0100)]
clients/view: Add mousewheel and arrow keys

13 years agoclients/view: Remove unnecessary variables
Tim Wiederhake [Tue, 25 Jan 2011 21:21:56 +0000 (22:21 +0100)]
clients/view: Remove unnecessary variables

13 years agoclients/view: Do not browse outside document range
Tim Wiederhake [Tue, 25 Jan 2011 21:21:55 +0000 (22:21 +0100)]
clients/view: Do not browse outside document range

13 years agoFix new gcc 4.6 warnings
Kristian Høgsberg [Tue, 25 Jan 2011 20:16:01 +0000 (15:16 -0500)]
Fix new gcc 4.6 warnings

simple-client.c:156:10: warning: variable ‘ar’ set but not used [-Wunused-but-set-variable]

etc.

13 years agoDon't compare socket(2) to NULL
Kristian Høgsberg [Tue, 25 Jan 2011 20:11:53 +0000 (15:11 -0500)]
Don't compare socket(2) to NULL

Ugh, embarassing.  Thanks, gcc 4.6.

13 years agoReplace gdk_pixbuf_unref with g_object_unref
Darxus@chaosreigns.com [Tue, 25 Jan 2011 20:00:56 +0000 (15:00 -0500)]
Replace gdk_pixbuf_unref with g_object_unref

Because gdk_pixbuf_unref is deprecated and for compatability with
gdk-pixbuf 2.21.4.

13 years agowindow.c: Make title not const
Kristian Høgsberg [Tue, 25 Jan 2011 17:45:37 +0000 (12:45 -0500)]
window.c: Make title not const

We now strdup it.

13 years agoRemove frame handler prototype
Kristian Høgsberg [Tue, 25 Jan 2011 17:44:19 +0000 (12:44 -0500)]
Remove frame handler prototype

I messed up the merge.

13 years agoMerge remote branch 'callum/master'
Kristian Høgsberg [Tue, 25 Jan 2011 15:40:01 +0000 (10:40 -0500)]
Merge remote branch 'callum/master'

Conflicts:
clients/window.h

13 years agoMerge remote branch 'nobled/for-krh'
Kristian Høgsberg [Tue, 25 Jan 2011 15:17:16 +0000 (10:17 -0500)]
Merge remote branch 'nobled/for-krh'

13 years agofix tty_destroy
Tim Wiederhake [Tue, 25 Jan 2011 11:01:00 +0000 (12:01 +0100)]
fix tty_destroy

fixes segfault when active tty could not be opened
fixes copy-paste mistake.

13 years agodon't use deprecated INCLUDES variable
nobled [Mon, 24 Jan 2011 16:27:27 +0000 (16:27 +0000)]
don't use deprecated INCLUDES variable

13 years agofix includes
nobled [Mon, 24 Jan 2011 16:01:26 +0000 (16:01 +0000)]
fix includes

13 years agoAdd specific versions to build dependencies
Darxus [Sun, 23 Jan 2011 23:38:57 +0000 (18:38 -0500)]
Add specific versions to build dependencies

13 years agoinitialise display
Tim Wiederhake [Sun, 23 Jan 2011 22:25:26 +0000 (23:25 +0100)]
initialise display

fixes valgrind:
==25178== Conditional jump or move depends on uninitialised value(s)
==25178==    at 0x409E2C: display_create (window.c:1582)
==25178==    by 0x407A43: main (terminal.c:2323)
and
==13793== Conditional jump or move depends on uninitialised value(s)
==13793==    at 0x40A2D1: display_handle_global (window.c:1504)
==13793==    by 0x4E2C183: display_handle_global (wayland-client.c:281)
==13793==    by 0x713FEE7: ffi_call_unix64 (in /usr/lib/libffi.so.5.0.10)
==13793==    by 0x713FC83: ffi_call (in /usr/lib/libffi.so.5.0.10)
==13793==    by 0x4E2C71A: wl_closure_invoke (connection.c:663)
==13793==    by 0x4E2BB7B: wl_display_iterate (wayland-client.c:484)
==13793==    by 0x4096CA: display_create (window.c:1664)
==13793==    by 0x407A43: main (terminal.c:2321)

13 years agofree option context
Tim Wiederhake [Sun, 23 Jan 2011 22:25:25 +0000 (23:25 +0100)]
free option context

13 years agoremove unused variable
Tim Wiederhake [Sun, 23 Jan 2011 22:25:24 +0000 (23:25 +0100)]
remove unused variable

13 years agocompositor-wayland: Remove unused variable
Benjamin Franzke [Sat, 15 Jan 2011 11:34:50 +0000 (12:34 +0100)]
compositor-wayland: Remove unused variable

13 years agodocument the usage of libtoytoolkit
Tim Wiederhake [Fri, 21 Jan 2011 15:56:07 +0000 (16:56 +0100)]
document the usage of libtoytoolkit

(krh: edited to follow window_create() API changes)

13 years agoclose terminal window on exit
Tim Wiederhake [Wed, 19 Jan 2011 22:14:33 +0000 (23:14 +0100)]
close terminal window on exit

13 years agofix resizing at top/left border
Tim Wiederhake [Mon, 17 Jan 2011 16:50:07 +0000 (17:50 +0100)]
fix resizing at top/left border

13 years agoremove declaration without definition from window.h
Tim Wiederhake [Mon, 17 Jan 2011 16:25:34 +0000 (17:25 +0100)]
remove declaration without definition from window.h

13 years agoremove unused function in clients/smoke.c, silence warning
Tim Wiederhake [Mon, 17 Jan 2011 11:50:28 +0000 (12:50 +0100)]
remove unused function in clients/smoke.c, silence warning

13 years agocompositor crashes if window width or height is <= 0
Tim Wiederhake [Mon, 17 Jan 2011 11:40:01 +0000 (12:40 +0100)]
compositor crashes if window width or height is <= 0

13 years agoadd clients to .gitignore
Tim Wiederhake [Mon, 17 Jan 2011 11:37:35 +0000 (12:37 +0100)]
add clients to .gitignore

13 years agocompositor/shm: use internalFormat=GL_BGRA_EXT in TexImage2D
Benjamin Franzke [Sat, 22 Jan 2011 16:49:48 +0000 (17:49 +0100)]
compositor/shm: use internalFormat=GL_BGRA_EXT in TexImage2D

13 years agoEnable all compositors by default
Kristian Høgsberg [Sun, 23 Jan 2011 18:50:42 +0000 (13:50 -0500)]
Enable all compositors by default

13 years agodisplay_iterate: Process only enabled event masks
Benjamin Franzke [Sat, 22 Jan 2011 19:41:07 +0000 (20:41 +0100)]
display_iterate: Process only enabled event masks

(krh: Added warning for this unintended usage)

13 years agoGuard enums in generated wayland-*-protocol.h
Tim Wiederhake [Sun, 23 Jan 2011 11:21:15 +0000 (12:21 +0100)]
Guard enums in generated wayland-*-protocol.h

(krh: edit #define guard to use WL_ prefix)

13 years agoDrive-by optimization of blur_surface()
Kristian Høgsberg [Sat, 22 Jan 2011 03:19:40 +0000 (22:19 -0500)]
Drive-by optimization of blur_surface()

13 years agoRemove unused bits of cairo code
Kristian Høgsberg [Sat, 22 Jan 2011 03:17:03 +0000 (22:17 -0500)]
Remove unused bits of cairo code

13 years agoUpdate TODO again
Kristian Høgsberg [Sat, 22 Jan 2011 03:01:48 +0000 (22:01 -0500)]
Update TODO again

13 years agoDefine the shell resize enumeration in the xml spec
Kristian Høgsberg [Sat, 22 Jan 2011 02:57:55 +0000 (21:57 -0500)]
Define the shell resize enumeration in the xml spec

13 years agoAdd an orange pop-up menu to test the new map_transient request
Kristian Høgsberg [Fri, 21 Jan 2011 23:03:15 +0000 (18:03 -0500)]
Add an orange pop-up menu to test the new map_transient request

13 years agoAdd new surface.map_transient() request to map a surface relative to another
Kristian Høgsberg [Fri, 21 Jan 2011 23:02:24 +0000 (18:02 -0500)]
Add new surface.map_transient() request to map a surface relative to another

13 years agoMerge branch 'master' of git://anongit.freedesktop.org/wayland
Callum Lowcay [Fri, 21 Jan 2011 23:00:48 +0000 (12:00 +1300)]
Merge branch 'master' of git://anongit.freedesktop.org/wayland

Conflicts:
clients/window.h

13 years agoUpdate TODO
Kristian Høgsberg [Fri, 21 Jan 2011 22:12:57 +0000 (17:12 -0500)]
Update TODO

13 years agoTake away pointer focus during server grabs
Kristian Høgsberg [Fri, 21 Jan 2011 22:00:09 +0000 (17:00 -0500)]
Take away pointer focus during server grabs

This lets the client restore the pointer image when the grab ends.

13 years agoterminal: Just send the pty master fd to receive the selection.
Kristian Høgsberg [Fri, 21 Jan 2011 21:23:09 +0000 (16:23 -0500)]
terminal: Just send the pty master fd to receive the selection.

LOL!!1

13 years agoActually send selected text when pasting
Kristian Høgsberg [Fri, 21 Jan 2011 20:18:55 +0000 (15:18 -0500)]
Actually send selected text when pasting

13 years agoUse cairo_push_group() for all double buffering, drop window_copy_*()
Kristian Høgsberg [Fri, 21 Jan 2011 16:35:05 +0000 (11:35 -0500)]
Use cairo_push_group() for all double buffering, drop window_copy_*()

13 years agoUse cairo_push_group() for double buffering in the terminal
Kristian Høgsberg [Thu, 20 Jan 2011 17:37:33 +0000 (12:37 -0500)]
Use cairo_push_group() for double buffering in the terminal

Slightly different version of the patch from twied.

13 years agoRender selection
Kristian Høgsberg [Thu, 20 Jan 2011 16:56:57 +0000 (11:56 -0500)]
Render selection

13 years agoUse libxkbcommon #defines for modifiers
Kristian Høgsberg [Wed, 19 Jan 2011 19:41:20 +0000 (14:41 -0500)]
Use libxkbcommon #defines for modifiers

13 years agoAdd proof-of-concept selection support to terminal
Kristian Høgsberg [Wed, 19 Jan 2011 19:27:42 +0000 (14:27 -0500)]
Add proof-of-concept selection support to terminal

Next will be to support mouse selections so we can copy and paste
something more interesting than just 'selection data'.

13 years agoPass input device and time in key_handler callback
Kristian Høgsberg [Wed, 19 Jan 2011 19:20:33 +0000 (14:20 -0500)]
Pass input device and time in key_handler callback

Move the modifiers to a input device getter function.

13 years agoPut the fd in the closure so debugging can print it
Kristian Høgsberg [Wed, 19 Jan 2011 19:11:48 +0000 (14:11 -0500)]
Put the fd in the closure so debugging can print it

13 years agoUse different closures for sending and receiving
Kristian Høgsberg [Wed, 19 Jan 2011 19:08:21 +0000 (14:08 -0500)]
Use different closures for sending and receiving

Otherwise we can end up overwriting data in the receive buffer as we
try to send it.

13 years agoUse the global handler in dnd instead of custom drag_offer hook
Kristian Høgsberg [Tue, 18 Jan 2011 14:23:13 +0000 (09:23 -0500)]
Use the global handler in dnd instead of custom drag_offer hook

13 years agowindow: Add a catch-all global handler hook
Kristian Høgsberg [Tue, 18 Jan 2011 14:17:57 +0000 (09:17 -0500)]
window: Add a catch-all global handler hook

13 years agoFirst attempt at selection support
Kristian Høgsberg [Tue, 18 Jan 2011 14:08:53 +0000 (09:08 -0500)]
First attempt at selection support

13 years agoSplit shell object out from compositor.c into its own file
Kristian Høgsberg [Tue, 18 Jan 2011 12:53:49 +0000 (07:53 -0500)]
Split shell object out from compositor.c into its own file

13 years agoclients/Makefile: Add AM_CPPFLAGS to view's CPPFLAGS
Benjamin Franzke [Sat, 15 Jan 2011 14:06:37 +0000 (15:06 +0100)]
clients/Makefile: Add AM_CPPFLAGS to view's CPPFLAGS

13 years agocompositor: Attach only valid background buffers
Benjamin Franzke [Sat, 15 Jan 2011 11:34:49 +0000 (12:34 +0100)]
compositor: Attach only valid background buffers

If a background is not found,
create_buffer_from_png will return NULL.
Do not attach these buffers.

13 years agocompositor-wayland: Assign func pointers pre init
Benjamin Franzke [Sat, 15 Jan 2011 11:34:48 +0000 (12:34 +0100)]
compositor-wayland: Assign func pointers pre init

13 years agosimple-client: Remove unnecessary flush
Kristian Høgsberg [Sat, 15 Jan 2011 01:45:23 +0000 (20:45 -0500)]
simple-client: Remove unnecessary flush

13 years agosimple-client: Create GLES2 context
Kristian Høgsberg [Sat, 15 Jan 2011 01:39:21 +0000 (20:39 -0500)]
simple-client: Create GLES2 context

13 years agoLink simple-client against libGLESv2.so, not full GL
Kristian Høgsberg [Sat, 15 Jan 2011 01:38:35 +0000 (20:38 -0500)]
Link simple-client against libGLESv2.so, not full GL

13 years agoMerge remote branch 'bnf/simple_client'
Kristian Høgsberg [Sat, 15 Jan 2011 00:13:22 +0000 (19:13 -0500)]
Merge remote branch 'bnf/simple_client'

13 years agoAdd a simple client
Benjamin Franzke [Fri, 14 Jan 2011 23:40:17 +0000 (00:40 +0100)]
Add a simple client

13 years agoconnection: Write before reading connection data
Benjamin Franzke [Fri, 14 Jan 2011 23:40:00 +0000 (00:40 +0100)]
connection: Write before reading connection data

13 years agoCheck for cairo-egl instead of just cairo-gl
Kristian Høgsberg [Fri, 14 Jan 2011 22:41:33 +0000 (17:41 -0500)]
Check for cairo-egl instead of just cairo-gl

13 years agoCheck for GL_EXT_texture_format_BGRA8888
Kristian Høgsberg [Fri, 14 Jan 2011 22:28:21 +0000 (17:28 -0500)]
Check for GL_EXT_texture_format_BGRA8888