Kristian Høgsberg [Wed, 12 Oct 2011 02:20:37 +0000 (22:20 -0400)]
compositor: Repick focus surface as surfaces come and go
Kristian Høgsberg [Tue, 11 Oct 2011 21:23:02 +0000 (17:23 -0400)]
x11: Use compositor time, not X event time
X event time is not compatible with wlsc_compositor_get_time().
Benjamin Franzke [Fri, 7 Oct 2011 07:33:06 +0000 (09:33 +0200)]
gears: Fail if compiled without cairo-egl
Benjamin Franzke [Tue, 27 Sep 2011 19:57:31 +0000 (21:57 +0200)]
window: Create a cairo device for each egl config
Benjamin Franzke [Fri, 7 Oct 2011 07:08:56 +0000 (09:08 +0200)]
window: Remove display_flush_cairo_device
Rather add a flush_surface utility that
flushed the cairo_device thats associated to a surface.
Benjamin Franzke [Fri, 7 Oct 2011 06:27:26 +0000 (08:27 +0200)]
compositor-drm: Fix invalid usage of udev ressources
The reference returned by udev_list_entry_get_name is
only valid until udev_enumerate_unref is called.
Call unref after the last usage of such.
Benjamin Franzke [Fri, 7 Oct 2011 06:23:22 +0000 (08:23 +0200)]
compositor-drm: Enumerate only cards with name card*
To exclude /dev/dri/controlD* from the enumeration.
Benjamin Franzke [Fri, 7 Oct 2011 06:20:53 +0000 (08:20 +0200)]
compositor-drm: Be patient when output creation fails
Do not fail if e.g. only one of 3 connectors cant be enabled.
Could be that we just have not enough crtcs available.
Benjamin Franzke [Wed, 21 Sep 2011 08:01:30 +0000 (10:01 +0200)]
compositor-openwfd: Fix tty assignment in backend_init
Kristian Høgsberg [Fri, 9 Sep 2011 22:20:52 +0000 (18:20 -0400)]
Handle compositors without wl_shell
Kristian Høgsberg [Wed, 21 Sep 2011 12:47:55 +0000 (08:47 -0400)]
view: Fix reference to wayland-glib.h
Kristian Høgsberg [Wed, 21 Sep 2011 01:43:54 +0000 (21:43 -0400)]
window.c: Move window items to window.c
Kristian Høgsberg [Thu, 15 Sep 2011 19:43:14 +0000 (15:43 -0400)]
Change remaining GPLv2 headers to MIT
The files in question are copyright Benjamin Franzke (who agrees),
Intel Corporation, Red Hat and myself. On behalf of Red Hat,
Richard Fontana says:
"Therefore, to the extent that Red Hat, Inc. has any copyright
interest in the files you cited as of this date (compositor-drm.c,
compositor.c, compositor.h, screenshooter.c in
http://cgit.freedesktop.org/wayland/wayland-demos/tree/compositor),
Red Hat hereby elects to apply the CC0 1.0 Universal Public Domain
Dedication to such copyrighted material. See:
http://creativecommons.org/publicdomain/zero/1.0/legalcode .
Thanks,
Richard E. Fontana
Open Source Licensing and Patent Counsel
Red Hat, Inc."
Kristian Høgsberg [Wed, 14 Sep 2011 21:33:48 +0000 (17:33 -0400)]
window: Stop using glib mainloop in toy toolkit
Kristian Høgsberg [Tue, 13 Sep 2011 18:47:46 +0000 (14:47 -0400)]
Move rounded_rect() to cairo-util.c
Kristian Høgsberg [Wed, 14 Sep 2011 00:58:00 +0000 (20:58 -0400)]
terminal: Make -f (fullscreen) option work again
Tiago Vignatti [Thu, 8 Sep 2011 11:46:06 +0000 (04:46 -0700)]
xserver: check whether pointer exists when exiting
At initialization, if it fails in binding the socket or creating the
lock file then the pointer will be already freed and will result a
segfault when quiting the compositor.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Kristian Høgsberg [Thu, 8 Sep 2011 22:18:02 +0000 (18:18 -0400)]
desktop-shell: Scale background image to output size
Kristian Høgsberg [Thu, 8 Sep 2011 20:56:57 +0000 (16:56 -0400)]
shell: Reject moving or resizing toplevel windows
Kristian Høgsberg [Thu, 8 Sep 2011 20:56:38 +0000 (16:56 -0400)]
window: Default to toplevel windows
Kristian Høgsberg [Thu, 8 Sep 2011 15:48:53 +0000 (11:48 -0400)]
desktop-shell: Add launcher for the Wayland terminal
Kristian Høgsberg [Tue, 6 Sep 2011 22:13:14 +0000 (18:13 -0400)]
Rename motion_grab to implicit_grab
Let's just use the same terms as X.
Kristian Høgsberg [Tue, 6 Sep 2011 22:02:34 +0000 (18:02 -0400)]
clients: Add a simple desktop-shell app
This just provides the background surface and the top panel.
Kristian Høgsberg [Tue, 6 Sep 2011 18:33:52 +0000 (14:33 -0400)]
window: Add enter/leave handlers
Kristian Høgsberg [Tue, 6 Sep 2011 17:48:16 +0000 (13:48 -0400)]
Add a desktop_shell interface
Mostly a toy-thing for now, to allow prototyping a desktop-shell client.
Kristian Høgsberg [Tue, 6 Sep 2011 17:44:56 +0000 (13:44 -0400)]
compositor: Don't crash when receiving kb focus with no surface
Kristian Høgsberg [Tue, 6 Sep 2011 17:43:46 +0000 (13:43 -0400)]
compositor: Drop built-in background support
There should always be a background client (file manager, home screen,
animated wallpaper or just a plain static image).
Kristian Høgsberg [Tue, 6 Sep 2011 17:41:47 +0000 (13:41 -0400)]
compositor: Repick surface when grab ends
We were doing it manually in a few places and forgetting it in the
implicit grab case.
Kristian Høgsberg [Thu, 1 Sep 2011 17:25:50 +0000 (13:25 -0400)]
evdev: Associate touchscreen devices with output up front
This isn't going to change over time, so just tracking it in the
evdev device is a little easier. Also, we need to adjust for the
output position when transforming the device events to screen space.
Tiago Vignatti [Thu, 1 Sep 2011 16:00:05 +0000 (19:00 +0300)]
evdev: treat BTN_TOUCH as BTN_LEFT
idea stolen from xorg evdev.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Tiago Vignatti [Thu, 1 Sep 2011 19:58:17 +0000 (15:58 -0400)]
compositor: choose tty from command line
This is a backend option, so you should use something like '-otty='.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Tiago Vignatti [Thu, 1 Sep 2011 16:00:04 +0000 (19:00 +0300)]
evdev: use last output from compositor to get the screen geometries
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Tiago Vignatti [Thu, 1 Sep 2011 16:00:03 +0000 (19:00 +0300)]
evdev: organize the code for processing events
Nothing was touched, just code moved around.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Kristian Høgsberg [Thu, 1 Sep 2011 13:54:57 +0000 (09:54 -0400)]
Use wl_resource_* error functions
Benjamin Franzke [Thu, 1 Sep 2011 08:36:16 +0000 (10:36 +0200)]
clients: Fix typos
And forgotten display_create conversion in view.c.
Matt Roper [Mon, 29 Aug 2011 22:59:37 +0000 (15:59 -0700)]
Turn off hardware cursor when screen fade begins.
The compositor was never actually calling the output backend to turn off
the hardware cursor when the screen begins fading. This would result in
a stuck hardware cursor and movable software cursor for the duration of
the fade/unfade.
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Benjamin Franzke [Wed, 31 Aug 2011 09:40:03 +0000 (11:40 +0200)]
Update gitignore
Benjamin Franzke [Tue, 9 Aug 2011 12:33:45 +0000 (14:33 +0200)]
Remove egl display type setenv hack
No longer needed with mesa 7.12-devel egl display autodetection.
Benjamin Franzke [Tue, 30 Aug 2011 09:44:56 +0000 (11:44 +0200)]
compositor-drm: Merge drm_output_destroy and destroy_output
Benjamin Franzke [Tue, 30 Aug 2011 09:38:26 +0000 (11:38 +0200)]
compositor-drm: Coding style fixes
- Reformat indentation and 80-column wrap
- Use output->base rather than output_base
- Remove traling space
Benjamin Franzke [Tue, 30 Aug 2011 09:32:47 +0000 (11:32 +0200)]
Remove return type from wlsc_compositor_shutdown
Fixes "control reaches end of non-void function" warning
and is not needed (yet).
Benjamin Franzke [Tue, 30 Aug 2011 09:29:46 +0000 (11:29 +0200)]
compositor-openwfd: Fix wfd_destroy_output
Dont (incorrectly) call destroy_output
from wfd_destroy_output, rather merge both.
Kristian Høgsberg [Wed, 31 Aug 2011 20:21:38 +0000 (16:21 -0400)]
Move away from visuals and just use EGLConfigs or shm format tokens
Kristian Høgsberg [Mon, 29 Aug 2011 20:47:09 +0000 (16:47 -0400)]
Fix cursor visibility bug
Kristian Høgsberg [Mon, 29 Aug 2011 20:11:10 +0000 (16:11 -0400)]
gears: Don't schedule redraw, just draw from frame callback
Kristian Høgsberg [Mon, 29 Aug 2011 20:09:32 +0000 (16:09 -0400)]
compositor: Discard surface.frame if the surface isn't visible
Kristian Høgsberg [Mon, 29 Aug 2011 20:04:39 +0000 (16:04 -0400)]
compositor: Track bound resources for input device
Kristian Høgsberg [Mon, 29 Aug 2011 20:02:57 +0000 (16:02 -0400)]
compositor: Handle NULL buffer in input_device.attach correctly
Kristian Høgsberg [Mon, 29 Aug 2011 19:03:09 +0000 (15:03 -0400)]
Create resource for wl_output
Kristian Høgsberg [Sat, 27 Aug 2011 01:31:33 +0000 (21:31 -0400)]
simple-shm: Fix inverted logic
Kristian Høgsberg [Fri, 26 Aug 2011 21:21:20 +0000 (17:21 -0400)]
Pass resources to functions that take object references
Kristian Høgsberg [Wed, 24 Aug 2011 15:32:19 +0000 (11:32 -0400)]
clients: Remove a few unused variables
Kristian Høgsberg [Wed, 24 Aug 2011 15:30:21 +0000 (11:30 -0400)]
terminal: Fix unused return value warnings
Kristian Høgsberg [Wed, 24 Aug 2011 15:09:53 +0000 (11:09 -0400)]
window.c: Drop global handler argument
We can just register a global handler directly on the wl_display now.
Kristian Høgsberg [Tue, 23 Aug 2011 22:14:06 +0000 (18:14 -0400)]
clients: Bring clients up to date
Kristian Høgsberg [Fri, 19 Aug 2011 18:41:57 +0000 (14:41 -0400)]
Use wl_display_bind() for binding to globals
Kristian Høgsberg [Fri, 19 Aug 2011 16:07:44 +0000 (12:07 -0400)]
compositor: drop wl_display_add_object()
Kristian Høgsberg [Thu, 18 Aug 2011 21:55:30 +0000 (17:55 -0400)]
compositor: Make all exported objects wl_resources
Kristian Høgsberg [Wed, 17 Aug 2011 03:01:28 +0000 (23:01 -0400)]
Use the new wl_callback interface
Matt Roper [Mon, 29 Aug 2011 20:52:23 +0000 (13:52 -0700)]
Update compositor shutdown code
Adds a general wlsc_compositor_shutdown() function that all output
backends call when shutting down. wlsc_compositor_shutdown() will call
a new 'destroy' method of each output to perform backend-specific
cleanup (e.g., turning off the hardware cursor in the DRM compositor).
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Matt Roper [Sat, 27 Aug 2011 00:36:49 +0000 (17:36 -0700)]
Turn off hardware cursors on VT switch before dropping DRM
The DRM cursor ioctl requires DRM master. We shouldn't drop
master until after we're done turning off the hardware cursors
for a VT switch.
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Tiago Vignatti [Fri, 19 Aug 2011 14:07:40 +0000 (17:07 +0300)]
evdev: opt out accelerometer type of devices
We may want to adjust the protocol later for clients that care for
these devices only, generating a special event.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Tiago Vignatti [Fri, 19 Aug 2011 12:10:40 +0000 (15:10 +0300)]
compositor: fix pitch initialization
texture_region was getting a trash value for computing. I don't
understand how we couldn't see any artifact on surface output in such
case.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Tiago Vignatti [Fri, 19 Aug 2011 12:06:20 +0000 (15:06 +0300)]
evdev: use a separate function for configuring devices
No semantical changes.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Ander Conselvan de Oliveira [Wed, 17 Aug 2011 11:50:17 +0000 (14:50 +0300)]
compositor-drm: Fix compilation error caused by typo.
Ander Conselvan de Oliveira [Tue, 16 Aug 2011 11:25:15 +0000 (14:25 +0300)]
compositor-drm: Make unused parts of the cursor image transparent
The bo for the cursor image is always created with size 64x64 even if
the actual cursor image is smaller than that. If this memory is not
initialized, random data can create artifacts near the cursor.
Signed-off-by: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira@intel.com>
Dima Ryazanov [Wed, 17 Aug 2011 00:25:32 +0000 (17:25 -0700)]
Don't discard key press / key release events if the keys are different
Keystrokes get dropped if the user types too quickly.
Kristian Høgsberg [Fri, 12 Aug 2011 18:55:07 +0000 (14:55 -0400)]
Don't pass NULL pointer as user data to signal handler
Matt Peterson [Mon, 1 Aug 2011 19:46:29 +0000 (13:46 -0600)]
Relative movement with a touchpad and other misc fixes for events
Benjamin Franzke [Tue, 2 Aug 2011 11:03:54 +0000 (13:03 +0200)]
compositor-drm: Ignore disconnected connectors width
- Fixes segfault, if first enumerated connector is not connected.
- Corrects x-offset where e.g. the 2. of 3 connectors is not connected.
(where width of 1. output would have taken twice as
offset for output at 3. connector)
Kristian Høgsberg [Thu, 11 Aug 2011 22:59:35 +0000 (18:59 -0400)]
xserver: Shut down if X server is crashing too fast
Kristian Høgsberg [Thu, 11 Aug 2011 21:58:59 +0000 (17:58 -0400)]
xserver: Clean up wm on X server exit
Kristian Høgsberg [Thu, 11 Aug 2011 21:48:38 +0000 (17:48 -0400)]
xserver: Clean up lockfile creation a bit
Kristian Høgsberg [Thu, 11 Aug 2011 21:27:56 +0000 (17:27 -0400)]
xserver: Listen on abstract X socket too
And try the next display if binding fails.
Tiago Vignatti [Mon, 8 Aug 2011 12:52:59 +0000 (05:52 -0700)]
compositor: Move signal handler initialization before module loading
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Tiago Vignatti [Wed, 3 Aug 2011 09:12:31 +0000 (12:12 +0300)]
configure: add helper for setting xserver directory
With this the X server directory can become independent from the
installation prefix set by autoconf.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Kristian Høgsberg [Wed, 27 Jul 2011 12:59:19 +0000 (05:59 -0700)]
xserver: Print atom names
Kristian Høgsberg [Wed, 27 Jul 2011 12:58:57 +0000 (05:58 -0700)]
screenshot: A couple of minor tweaks
Tiago Vignatti [Tue, 26 Jul 2011 08:42:59 +0000 (11:42 +0300)]
screenshot: use gdk-pixbuf for writing png images
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Kristian Høgsberg [Fri, 22 Jul 2011 14:25:21 +0000 (07:25 -0700)]
tty: Use /dev/tty instead of tty0
Kristian Høgsberg [Thu, 21 Jul 2011 18:33:47 +0000 (11:33 -0700)]
compositor: Only configure surface when it changes geometry
Kristian Høgsberg [Thu, 21 Jul 2011 18:30:22 +0000 (11:30 -0700)]
compositor: Pick output for surface based on amount of overlap
Benjamin Franzke [Thu, 21 Jul 2011 10:45:03 +0000 (10:45 +0000)]
compositor-openwfd: Update to systemd seat input devices
Kristian Høgsberg [Thu, 21 Jul 2011 17:22:13 +0000 (10:22 -0700)]
compositor-x11: Support multiple outputs
Kristian Høgsberg [Thu, 21 Jul 2011 16:48:09 +0000 (09:48 -0700)]
xserver: Ignore requests from X servers we didn't launch
Kristian Høgsberg [Thu, 21 Jul 2011 15:41:24 +0000 (08:41 -0700)]
clients: Rename simple-client to simple-egl
Tiago Vignatti [Thu, 21 Jul 2011 13:35:40 +0000 (16:35 +0300)]
configure: set up simple clients independently from the others
Namely, simple-client and simple-shm.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Tiago Vignatti [Thu, 21 Jul 2011 13:35:39 +0000 (16:35 +0300)]
clients: simple-shm: remove unused libraries and headers
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Tiago Vignatti [Thu, 21 Jul 2011 13:35:38 +0000 (16:35 +0300)]
simple-shm: assert display conection
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
Kristian Høgsberg [Thu, 21 Jul 2011 13:46:26 +0000 (06:46 -0700)]
evdev: Only add event devices
Kristian Høgsberg [Thu, 21 Jul 2011 13:46:05 +0000 (06:46 -0700)]
xserver: use $bindir prefix when launching X
Kristian Høgsberg [Thu, 21 Jul 2011 01:15:50 +0000 (18:15 -0700)]
xserver: Memset the right size
Kristian Høgsberg [Thu, 21 Jul 2011 01:15:27 +0000 (18:15 -0700)]
xserver: Only launch wm for xservers we launch
Kristian Høgsberg [Tue, 19 Jul 2011 23:10:11 +0000 (16:10 -0700)]
compositor: Use systemd seats for input devices as well
Kristian Høgsberg [Sat, 16 Jul 2011 01:28:38 +0000 (21:28 -0400)]
compositor: Use systemd seat configuration conventions
http://www.freedesktop.org/wiki/Software/systemd/multiseat
Kristian Høgsberg [Sat, 16 Jul 2011 01:09:24 +0000 (21:09 -0400)]
xserver: Clean up X server socket on exit
Kristian Høgsberg [Sat, 16 Jul 2011 00:14:57 +0000 (20:14 -0400)]
xserver: Detect an clean up stale lock file
Kristian Høgsberg [Sat, 16 Jul 2011 00:14:00 +0000 (20:14 -0400)]
xserver: Create per-display log file
Kristian Høgsberg [Fri, 15 Jul 2011 21:26:34 +0000 (17:26 -0400)]
compositor-drm: Drop cursor debug message
Benjamin Franzke [Sat, 16 Jul 2011 19:50:32 +0000 (19:50 +0000)]
window.c: Fix compile/run using cairo without egl