Olivier Blin
7679d9a62e
gears: add a warning about refresh rate limitation
12 years ago
Olivier Blin
a1d0cf5d69
gears: show FPS count (as in glxgears from mesa/demos)
12 years ago
Olivier Blin
fa820efaf0
gears: add fullscreen support
12 years ago
Daniel Stone
4dbadb1556
Use enum wl_pointer_button_state instead of integer
...
Instead of using a uint32_t for state everywhere (except on the wire,
where that's still the call signature), use the new
wl_pointer_button_state enum, and explicit comparisons.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Ander Conselvan de Oliveira
dc8c8fce72
window: rename enum pointer_type to cursor_type
...
This avoids confusion with the pointer devices (struct wl_pointer).
13 years ago
Ander Conselvan de Oliveira
d8f527c845
window: track changes in libwayland-cursor api
...
libwayland-cursor does not provide enum wl_cursor_type anymore so this
brings back enum pointer_type.
This partially revers commit 1042dc15e0
.
13 years ago
Ander Conselvan de Oliveira
1042dc15e0
window: use libwayland-cursor instead of libXcursor
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
80680c7b75
window.c: Just use float instead of GLfloat, remove GLES2.h include
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
5d66371743
Change button from int to uint32_t
...
Since you can't really have a negative button number.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Daniel Stone
da5b93c8d7
Change key/button grab bindings to take unsigned state
...
'state' here meaning 'is it up or down?', obviously.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Scott Moreau
7890c4d36d
gears: Allow model rotation with pointer
13 years ago
Kristian Høgsberg
875ab9e735
Add signedness warning flag and fix fallout
13 years ago
Kristian Høgsberg
bcacef19b0
Add an option parser
...
On one hand, getopt (in particular the -o suboption syntax) sucks on the
server side, and on the client side we would like to avoid the glib
dependency. We can roll out own option parser and solve both problems
and save a few lines of code total.
13 years ago
Kristian Høgsberg
010f98b083
window: Track and report input and opaque regions
...
We just set the input region to the bounding box of the window frame
and set the opaque region to be the opaque rectangle inside the window
if the child widget is opaque.
13 years ago
Tiago Vignatti
0a26641626
clients: fix spelling
...
Signed-off-by: Tiago Vignatti <vignatti@freedesktop.org>
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
009ac0a965
window: Dont take width and height in window constructor
...
Always set this by scheduling an initial resize.
13 years ago
Kristian Høgsberg
5f5324e098
gears: Make window transparent
...
We need this for the window decorations.
13 years ago
Kristian Høgsberg
29af3ebce6
window: Make decorations just a widget
...
Woohoo, only took 25 commits of refactoring to get to this point.
13 years ago
Kristian Høgsberg
bb97700474
window: Get rid of the window child allocation concept
13 years ago
Kristian Høgsberg
b67e94b170
window: Make resize and redraw handlers widget vfuncs
13 years ago
Kristian Høgsberg
5d12990dbe
window: Allocate and flush the window surface in window.c
...
No need to push this to the toolkit users.
13 years ago
Kristian Høgsberg
c5241f5b73
Never include wayland-util.h directly
...
And fix a missing "" to <> conversion for wayland-client.h include.
13 years ago
Pekka Paalanen
50719bce2a
Fix inconsistent #include style
...
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Benjamin Franzke
1a89f28c7d
gears: Fail if compiled without cairo-egl
13 years ago
Benjamin Franzke
0c99163d9b
window: Create a cairo device for each egl config
13 years ago
Kristian Høgsberg
3a69627f43
window: Stop using glib mainloop in toy toolkit
13 years ago
Kristian Høgsberg
6da3812f0a
gears: Don't schedule redraw, just draw from frame callback
13 years ago
Kristian Høgsberg
9de79a92a6
window.c: Drop global handler argument
...
We can just register a global handler directly on the wl_display now.
13 years ago
Kristian Høgsberg
a8d1fa762e
clients: Bring clients up to date
13 years ago
Tim Wiederhake
b4b67344f0
Define global handler on display creation
...
Otherwise the initial announcement of interfaces gets lost.
14 years ago
Benjamin Franzke
cff904e69d
gears: Use wayland egl surface instead of images
14 years ago
Benjamin Franzke
6693ac2108
window: Use window surfaces for windows
14 years ago
Benjamin Franzke
ec4d342aa9
Support per surface frame events
...
This fixes tearing with multi head.
14 years ago
Kristian Høgsberg
f57a96f98d
gears: Remove unused drm_fd field
14 years ago
Kristian Høgsberg
297c6313eb
Port window.c to use wayland-egl
14 years ago
Kristian Høgsberg
00439617f3
Fix new gcc 4.6 warnings
...
simple-client.c:156:10: warning: variable ‘ar’ set but not used [-Wunused-but-set-variable]
etc.
14 years ago
Kristian Høgsberg
248c1b61ce
Add an orange pop-up menu to test the new map_transient request
14 years ago
Kristian Høgsberg
8def264241
Check for cairo-egl instead of just cairo-gl
14 years ago
Kristian Høgsberg
da846ca91d
Fix terminal resizing
...
Get snapping to character grid working again, avoid crashes when attempting
to resize below 1x1 character cell, only redraw when size actually changes.
Also, rename window_get_child_rectangle() to window_get_child_allocation().
14 years ago
Kristian Høgsberg
96ce968b12
gears: Include config.h
14 years ago
Kristian Høgsberg
1926ebab73
Add missing newline in gears error message
14 years ago
nobled
9835417962
Workaround gears depending on cairo-gl
...
Extremely hacky, but at least it doesn't stop the build anymore.
14 years ago
Kristian Høgsberg
82da52b15b
Update surface.attach and change surface.map to surface.map_toplevel
...
The new map_toplevel() request no longer specifies a position and takes
the size from the attached buffer. The attach request now takes a
position relative to the top-left corner of the old buffer to let
clients specify the relative position of the new buffer.
14 years ago
Yuval Fledel
e9f5e36730
Make clients exit orderly when there is no connection
14 years ago
Bryce Harrington
40269a6ed6
Cleanup declared but unused variables.
...
Make was complaining about a bunch of unused variables that were being
declared.
Signed-off-by: Bryce Harrington <bryce@canonical.com>
14 years ago
Kristian Høgsberg
2b43bd73a0
Bring gears example up to date
...
Must have gears.
14 years ago
Kristian Høgsberg
9d69f8e796
Replace commit/ack/frame protocol with simpler sync and frame callbacks
14 years ago
Kristian Høgsberg
b12fcceeb7
Update to EGL_MESA_drm_image from mesa master
...
Woo, running on stock mesa now.
14 years ago