Commit Graph

1191 Commits

Author SHA1 Message Date
Tiago Vignatti bbc2e03b2a evdev: use last output from compositor to get the screen geometries
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-09-01 12:32:29 -04:00
Tiago Vignatti 8be003baba evdev: organize the code for processing events
Nothing was touched, just code moved around.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-09-01 12:30:48 -04:00
Kristian Høgsberg 9ebcf94b83 Use wl_resource_* error functions 2011-09-01 09:54:57 -04:00
Benjamin Franzke 4b87a13974 clients: Fix typos
And forgotten display_create conversion in view.c.
2011-09-01 10:36:53 +02:00
Matt Roper 11568a73ba 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>
2011-08-31 16:27:35 -04:00
Benjamin Franzke e8e0e6e2db Update gitignore 2011-08-31 16:25:32 -04:00
Benjamin Franzke 91eacca38b Remove egl display type setenv hack
No longer needed with mesa 7.12-devel egl display autodetection.
2011-08-31 16:25:18 -04:00
Benjamin Franzke 48c4ea2dbd compositor-drm: Merge drm_output_destroy and destroy_output 2011-08-31 16:24:27 -04:00
Benjamin Franzke 117483daaa compositor-drm: Coding style fixes
- Reformat indentation and 80-column wrap
 - Use output->base rather than output_base
 - Remove traling space
2011-08-31 16:24:25 -04:00
Benjamin Franzke b826302efb Remove return type from wlsc_compositor_shutdown
Fixes "control reaches end of non-void function" warning
and is not needed (yet).
2011-08-31 16:24:23 -04:00
Benjamin Franzke 4c394190a3 compositor-openwfd: Fix wfd_destroy_output
Dont (incorrectly) call destroy_output
from wfd_destroy_output, rather merge both.
2011-08-31 16:24:20 -04:00
Kristian Høgsberg f389cacc20 Move away from visuals and just use EGLConfigs or shm format tokens 2011-08-31 16:21:38 -04:00
Kristian Høgsberg 4ebf3a0c2e Fix cursor visibility bug 2011-08-29 17:12:37 -04:00
Kristian Høgsberg 6da3812f0a gears: Don't schedule redraw, just draw from frame callback 2011-08-29 17:12:37 -04:00
Kristian Høgsberg 6f7179c652 compositor: Discard surface.frame if the surface isn't visible 2011-08-29 17:12:37 -04:00
Kristian Høgsberg 8e6d71247e compositor: Track bound resources for input device 2011-08-29 17:12:37 -04:00
Kristian Høgsberg 57295ebf20 compositor: Handle NULL buffer in input_device.attach correctly 2011-08-29 17:12:37 -04:00
Kristian Høgsberg fd07fb76bc Create resource for wl_output 2011-08-29 17:12:37 -04:00
Kristian Høgsberg 2821aaaf9c simple-shm: Fix inverted logic 2011-08-29 17:12:37 -04:00
Kristian Høgsberg 97d44aa58b Pass resources to functions that take object references 2011-08-29 17:12:37 -04:00
Kristian Høgsberg 2415990461 clients: Remove a few unused variables 2011-08-29 17:12:36 -04:00
Kristian Høgsberg 26130866c6 terminal: Fix unused return value warnings 2011-08-29 17:12:36 -04:00
Kristian Høgsberg 9de79a92a6 window.c: Drop global handler argument
We can just register a global handler directly on the wl_display now.
2011-08-29 17:12:36 -04:00
Kristian Høgsberg a8d1fa762e clients: Bring clients up to date 2011-08-29 17:12:36 -04:00
Kristian Høgsberg f790c79ec7 Use wl_display_bind() for binding to globals 2011-08-29 17:12:36 -04:00
Kristian Høgsberg d9551a3377 compositor: drop wl_display_add_object() 2011-08-29 17:12:36 -04:00
Kristian Høgsberg 904055a652 compositor: Make all exported objects wl_resources 2011-08-29 17:12:36 -04:00
Kristian Høgsberg 334182062f Use the new wl_callback interface 2011-08-29 17:12:36 -04:00
Matt Roper 361d2ade02 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>
2011-08-29 17:12:27 -04:00
Matt Roper 045037e005 Turn off hardware cursors on VT switch before dropping DRM master.
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>
2011-08-27 12:10:19 -04:00
Tiago Vignatti c0827fd9d6 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>
2011-08-19 10:55:33 -04:00
Tiago Vignatti 2cc8b87310 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>
2011-08-19 10:55:33 -04:00
Tiago Vignatti d9c8250955 evdev: use a separate function for configuring devices
No semantical changes.

Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-08-19 10:55:33 -04:00
Ander Conselvan de Oliveira 90bc9e6532 compositor-drm: Fix compilation error caused by typo. 2011-08-17 09:30:16 -04:00
Ander Conselvan de Oliveira c483917512 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>
2011-08-16 21:32:54 -04:00
Dima Ryazanov c224748665 Don't discard key press / key release events if the keys are different
Keystrokes get dropped if the user types too quickly.
2011-08-16 21:32:54 -04:00
Kristian Høgsberg 6bded3fd95 Don't pass NULL pointer as user data to signal handler 2011-08-12 14:55:07 -04:00
Matt Peterson 63900ec374 Relative movement with a touchpad and other misc fixes for events 2011-08-12 10:20:36 -04:00
Benjamin Franzke 9eaee35613 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)
2011-08-12 10:17:12 -04:00
Kristian Høgsberg 3651bd54e1 xserver: Shut down if X server is crashing too fast 2011-08-11 18:59:35 -04:00
Kristian Høgsberg 3cf1172397 xserver: Clean up wm on X server exit 2011-08-11 17:58:59 -04:00
Kristian Høgsberg f6ee695805 xserver: Clean up lockfile creation a bit 2011-08-11 17:48:38 -04:00
Kristian Høgsberg 534222b4d9 xserver: Listen on abstract X socket too
And try the next display if binding fails.
2011-08-11 17:27:56 -04:00
Tiago Vignatti 2116b89156 compositor: Move signal handler initialization before module loading
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-08-11 15:15:30 -04:00
Tiago Vignatti 5884bcde4a 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>
2011-08-11 15:09:59 -04:00
Kristian Høgsberg 338c96325b xserver: Print atom names 2011-07-27 05:59:19 -07:00
Kristian Høgsberg 8417d432f5 screenshot: A couple of minor tweaks 2011-07-27 05:58:57 -07:00
Tiago Vignatti 4d0d2037ea screenshot: use gdk-pixbuf for writing png images
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
2011-07-26 08:23:37 -07:00
Kristian Høgsberg c1ace8c465 tty: Use /dev/tty instead of tty0 2011-07-22 07:25:21 -07:00
Kristian Høgsberg 9ffb6b9866 compositor: Only configure surface when it changes geometry 2011-07-21 20:14:57 -07:00