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.
13 years ago
Kristian Høgsberg
0b61130bae
xwm: memset struct to 0
...
We rely on focus_window being initialize to NULL.
13 years ago
Kristian Høgsberg
88c1607fb7
shell: Remove lock/unlock listeners on shutdown
13 years ago
Kristian Høgsberg
199fbb8081
xwm: Paint different decoration for active surface
13 years ago
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.
13 years ago
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.
13 years ago
Kristian Høgsberg
20d0028a56
Rename libconfig-parser to libshared
...
Still a bad name.
13 years ago
Kristian Høgsberg
5a315bc72d
Move cairo-util to shared/
13 years ago
Kristian Høgsberg
5adb480e60
window: Move frame rendering to cairo-util
13 years ago
Kristian Høgsberg
42abdf5c80
window: Move theme rendering code to cairo-util
13 years ago
Kristian Høgsberg
291c69cf93
window: Move all frame theme related state into new struct theme
13 years ago
Kristian Høgsberg
176b471a8e
xwm: Don't repaint after destroying window
13 years ago
Kristian Høgsberg
d9931880c5
window: Compute title vertical position based on font extents
...
We just fudged it before.
13 years ago
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.
13 years ago
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.
13 years ago
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.
13 years ago
Kristian Høgsberg
19ce462217
xwm: Update window title when window property change
13 years ago
Kristian Høgsberg
2a088867ab
xwm: Put a title bar on it
13 years ago
Kristian Høgsberg
13e8e4717e
xwm: Reparent X windows, paint a red decoration frame
...
It's red, and that's about it.
13 years ago
Kristian Høgsberg
c7ca355ec5
compositor: Only call weston_surface_update_transform from repaint
13 years ago
Kristian Høgsberg
c2d16000b9
compositor: Remove a few leftover screenshooter declarations
13 years ago
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.
13 years ago
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>
13 years ago
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.
13 years ago
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.
13 years ago
Kristian Høgsberg
bef52d1423
Update to new libxkbcommon API
...
We no longer depend on xproto, we use xkbcommon keycodes now. Yay!
13 years ago
Kristian Høgsberg
d174521b56
resizor: More resizing
...
Interacts better with interactive resizing, left/right keys now
changes window width.
13 years ago
Kristian Høgsberg
3593f81a5d
simple-egl: Add option -o to make surface opaque
13 years ago
Jonas Ådahl
df211839dd
clients: Add motion event trails to clickdot
...
Useful for testing pointer device.
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
13 years ago
Jonas Ådahl
c0ca399f22
evdev: Use wl_fixed_t for relative motions
...
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
13 years ago
Martin Minarik
1998b154a7
window.c: frame_button: Maximize, minimize, close, icon buttons in window frame
13 years ago
Kristian Høgsberg
80680c7b75
window.c: Just use float instead of GLfloat, remove GLES2.h include
13 years ago
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.
13 years ago
Kristian Høgsberg
c4621b07f6
compositor: Report refresh rates in mHz
...
We compute the higher resolution from the mode timing parameters.
13 years ago
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.
13 years ago
Jonas Ådahl
f647c5a5d5
compositor: When clipping pointer motions, don't loose precision
...
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
13 years ago
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.
13 years ago
Kristian Høgsberg
1f37601850
compositor: Move pointer motion clipping to its own function
13 years ago
Jonas Ådahl
c39aa5afca
evdev: Convert wl_fixed_t to int before using internally
...
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
13 years ago
Dima Ryazanov
ff1c2d7914
window: Don't crash if a cursor image failed to load.
...
Signed-off-by: Dima Ryazanov <dima@gmail.com>
13 years ago
Rafal Mielniczuk
87e4c9354e
window: fix check of cursor image load result
13 years ago
Daniel Stone
d42f457b66
Load an XKB keymap and state in the compositor
...
Not used yet, but will be in future commits.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Daniel Stone
db095ff3c3
Link compositors to xkbcommon as well
...
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Daniel Stone
855028fec9
Add xkb_names member plus config + X11 support
...
Add an xkb_names member to the base compositor info which contains the
RMLVO to use when building an XKB keymap. Add support for filling this
from the config file or from the underlying X11 server, with the usual
defaults.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Kristian Høgsberg
7016313778
Port Wayland clients to new xkbcommon API
...
A little different from Daniels initial patch. We look up the common
modifiers at xkb init time and convert the xkb serialized modifier mask
to our own modifier bitmask.
13 years ago
Daniel Stone
103db7fb56
Convert wire input co-ordinates to fixed-point
...
To add greater precision when working with transformed surfaces and/or
high-resolution input devices.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Daniel Stone
b230a7ee58
Convert internal input co-ordinates to GLfloat
...
Change all client motion handlers to take GLfloat for co-ordinates,
rather than int32_t.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Daniel Stone
bd3489b6e1
Add fixed-point versions of weston_surface_{to, from}_global
...
To be used by input code, paralleling the existing integer versions.
Enlarge the surface_{to,from}_global_float input types to GLfloat to
avoid losing precision.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Rob Bradford
eb95d0de7e
build: Tighten mtdev dependency to reflect requirement
...
The mtdev_new_open symbol was added in 1.1.0.
13 years ago
Tiago Vignatti
52e598cf51
shell: use own struct for transient surfaces
...
No functional changes; it's only opening space for modifications coming along
on the next commits.
Signed-off-by: Tiago Vignatti <tiago.vignatti@intel.com>
13 years ago