Kristian Høgsberg
d6ad122d9a
compositor: Disable blending for WL_SHM_FORMAT_XRGB8888 surface
...
Will it blend? No.
2012-05-17 11:11:15 -04:00
Kristian Høgsberg
c0bc844094
compositor-x11: Check the right variable after creating dummy pbuffer
2012-05-17 09:40:23 -04:00
Kristian Høgsberg
870461997a
tests: Rename left-over caps_mask to capability
2012-05-17 09:09:21 -04:00
Kristian Høgsberg
b93b6cfa47
compositor: Remove resource from list when we destroy seat devices
2012-05-16 22:32:40 -04:00
Kristian Høgsberg
97460500a8
xwm: Resize frame window if child window changes size
2012-05-16 22:20:46 -04:00
Kristian Høgsberg
b84108d72a
simple-egl: Fix crash and simplify
...
pointer_handle_enter() expects the struct display as the user data, so
just move wl_seat and wl_pointer into struct display.
2012-05-16 16:16:19 -04:00
Kristian Høgsberg
0b0c2bb3e9
compositor: Add opaque rect shader feature
...
This lets us mark a rectangle in a texture and force the alpha to one
inside. This is useful for textures coming from X windows, where the X
window part is xRGB, that is 32 bit RGB with an undefined alpha channel
and the decorations are rendered with a well-defined alpha channel.
2012-05-16 16:00:41 -04:00
Kristian Høgsberg
fb6c6d90f3
xserver: Use frame rendering code from cairo-util
2012-05-16 15:37:06 -04:00
Daniel Stone
37816df646
Convert wl_input_device to wl_seat (and friends)
...
wl_input_device has been both renamed and split. wl_seat is now a
virtual object representing a group of logically related input devices
with related focus.
It now only generates one event: to let clients know that it has new
capabilities. It takes requests which hand back objects for the
wl_pointer, wl_keyboard and wl_touch interfaces it exposes which all
provide the old input interface, just under different names.
This commit tracks these changes in weston and the clients, as well as
similar renames (e.g. weston_input_device -> weston_seat). Some other
changes were necessary, e.g. renaming the name for the visible mouse
sprite from 'pointer' to 'cursor' so as to not conflict.
For simplicity, every seat is always exposed with all three interfaces,
although this will change as time goes on.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-16 15:29:06 -04:00
Scott Moreau
dc549932b7
Convert wl_fixed_t to int in weston_output_update_zoom().
...
This way, we don't have to use wl_fixed_to_int() for each
call to weston_output_update_zoom(). It accepts wl_fixed_t
types and converts internally.
2012-05-16 11:04:04 -04:00
Kristian Høgsberg
0b61130bae
xwm: memset struct to 0
...
We rely on focus_window being initialize to NULL.
2012-05-16 10:13:41 -04:00
Kristian Høgsberg
88c1607fb7
shell: Remove lock/unlock listeners on shutdown
2012-05-16 08:04:19 -04:00
Kristian Høgsberg
199fbb8081
xwm: Paint different decoration for active surface
2012-05-15 23:39:17 -04:00
Kristian Høgsberg
bc4db77864
src: Don't add COMPOSITOR_CFLAGS to AM_CPPFLAGS
...
It's a CFLAGS variable, not CPPFLAGS and we don't want to add it to every
target. In particular we don't want anything leaking into weston-launch.
2012-05-15 22:57:07 -04:00
Kristian Høgsberg
c0a7ff5524
configure: Add pixman-1 to the compositor required packages
...
We used to get it through the IMAGE_LIBS/CFLAGS but we use it directly
in the compositor to add it as a direct dependency.
2012-05-15 22:54:33 -04:00
Kristian Høgsberg
20d0028a56
Rename libconfig-parser to libshared
...
Still a bad name.
2012-05-15 22:37:26 -04:00
Kristian Høgsberg
5a315bc72d
Move cairo-util to shared/
2012-05-15 22:33:43 -04:00
Kristian Høgsberg
5adb480e60
window: Move frame rendering to cairo-util
2012-05-15 22:25:28 -04:00
Kristian Høgsberg
42abdf5c80
window: Move theme rendering code to cairo-util
2012-05-15 22:14:27 -04:00
Kristian Høgsberg
291c69cf93
window: Move all frame theme related state into new struct theme
2012-05-15 22:12:54 -04:00
Kristian Høgsberg
176b471a8e
xwm: Don't repaint after destroying window
2012-05-15 21:58:39 -04:00
Kristian Høgsberg
d9931880c5
window: Compute title vertical position based on font extents
...
We just fudged it before.
2012-05-15 21:52:25 -04:00
Rob Bradford
7507b570c6
window: Store the outputs that the window is on
...
Using the surface enter/leave events track which outputs the window is on and
store those in a "window_output_list" on the window.
To create this list we define a struct window_output that is the list
relationship between the window and the output.
2012-05-15 13:29:37 -04:00
Ander Conselvan de Oliveira
f6f9069138
compositor: Fix cursor positioning right after input_device.attach
...
The type of fields x and y in wl_input_device was changed to wl_fixed_t
but input_device_attach() was still using it as if it were integer.
This bug caused the pointer sprite to be configured in the wrong place
on the screen (usually outside the visible area) but it would soon be
corrected in notify_motion() making it hard to notice and usually only
causing a quick flicker.
2012-05-15 10:59:24 -04:00
Ander Conselvan de Oliveira
6d2030dabb
tests: Fix event-test
...
notify_motion() now receives coordinates in wl_fixed_t but the test was
still passing integers.
2012-05-15 10:59:11 -04:00
Kristian Høgsberg
19ce462217
xwm: Update window title when window property change
2012-05-15 10:55:56 -04:00
Kristian Høgsberg
2a088867ab
xwm: Put a title bar on it
2012-05-15 10:30:05 -04:00
Kristian Høgsberg
13e8e4717e
xwm: Reparent X windows, paint a red decoration frame
...
It's red, and that's about it.
2012-05-15 09:28:38 -04:00
Kristian Høgsberg
c7ca355ec5
compositor: Only call weston_surface_update_transform from repaint
2012-05-14 16:18:54 -04:00
Kristian Høgsberg
c2d16000b9
compositor: Remove a few leftover screenshooter declarations
2012-05-14 15:23:57 -04:00
Scott Moreau
f7e498cb89
toytoolkit: Recalculate input region if client has modified it's size.
...
If a client changes it's width/height values in it's widget resize handler,
the input region will be wrong because of the assumptions toytoolkit makes
in frame_resize_handler(). So far, gears is the only client that does this.
2012-05-14 14:30:01 -04:00
Pekka Paalanen
79b5652de6
window: fix missed xkb API adaptation
...
Oddly enough, this failed to build on Android, but not otherwise.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2012-05-14 10:02:12 -04:00
Scott Moreau
7c8b116065
simple-shm: Handle ping event.
...
Since simple-shm does not use toytoolkit, it needs to respond to ping events so it is not deemed unresponsive.
2012-05-14 10:02:12 -04:00
Kristian Høgsberg
4c3dac9c66
clients: Remove superfluous #includes
...
In particular window.c and many clients were including glib.h without
using it and without the right cflags.
2012-05-11 16:40:22 -04:00
Kristian Høgsberg
bef52d1423
Update to new libxkbcommon API
...
We no longer depend on xproto, we use xkbcommon keycodes now. Yay!
2012-05-11 11:24:35 -04:00
Kristian Høgsberg
d174521b56
resizor: More resizing
...
Interacts better with interactive resizing, left/right keys now
changes window width.
2012-05-10 23:10:54 -04:00
Kristian Høgsberg
3593f81a5d
simple-egl: Add option -o to make surface opaque
2012-05-10 20:40:51 -04:00
Jonas Ådahl
df211839dd
clients: Add motion event trails to clickdot
...
Useful for testing pointer device.
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2012-05-10 19:06:04 -04:00
Jonas Ådahl
c0ca399f22
evdev: Use wl_fixed_t for relative motions
...
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2012-05-10 16:46:48 -04:00
Martin Minarik
1998b154a7
window.c: frame_button: Maximize, minimize, close, icon buttons in window frame
2012-05-10 16:19:33 -04:00
Kristian Høgsberg
80680c7b75
window.c: Just use float instead of GLfloat, remove GLES2.h include
2012-05-10 14:11:44 -04:00
Kristian Høgsberg
b71302e1db
Fix a few -pedantic warnings
...
We're not enabling -pedantic by default, but a quick test brought up a few
issues that we should fix.
2012-05-10 14:11:44 -04:00
Kristian Høgsberg
c4621b07f6
compositor: Report refresh rates in mHz
...
We compute the higher resolution from the mode timing parameters.
2012-05-10 14:09:48 -04:00
Kristian Høgsberg
34829dec71
compositor: Simplify clip_pointer_motion() and make it handle dead areas
...
We were testing if the pointer were outside any output and doing a lot of
work to compute the bounding box of all output and then clip against that.
Just clip against previous (valid) output and don't bother with the
bounding box.
2012-05-09 22:21:27 -04:00
Jonas Ådahl
f647c5a5d5
compositor: When clipping pointer motions, don't loose precision
...
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2012-05-09 22:21:27 -04:00
Kristian Høgsberg
e11bbe4cc8
compositor: Use wl_fixed_t for incoming input events
...
This changes notify_motion, notify_pointer_focus and notify_touch to take
wl_fixed_t types for input coordinates.
2012-05-09 12:19:04 -04:00
Kristian Høgsberg
1f37601850
compositor: Move pointer motion clipping to its own function
2012-05-09 11:43:11 -04:00
Jonas Ådahl
c39aa5afca
evdev: Convert wl_fixed_t to int before using internally
...
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
2012-05-09 11:30:49 -04:00
Dima Ryazanov
ff1c2d7914
window: Don't crash if a cursor image failed to load.
...
Signed-off-by: Dima Ryazanov <dima@gmail.com>
2012-05-09 11:25:11 -04:00
Rafal Mielniczuk
87e4c9354e
window: fix check of cursor image load result
2012-05-08 16:22:31 -04:00