Kristian Høgsberg
4172f668e7
Pass argc pointer to parse_options()
...
This lets us keep argc up to date as the backend picks out arguments
from the argv array.
12 years ago
Rob Bradford
409f79a2c7
image: Free allocated memory on error path
12 years ago
Kristian Høgsberg
9468708f70
image: Set dragging pointer on button press, not first motion
...
We want feedback that we're starting to drag when we press the button
not when we later start dragging the image.
12 years ago
Kristian Høgsberg
d3bf6766ab
image: Combine clamp_view() and center_view ()
...
We need to clamp or center on a per axis basis. If the window is wider
but the image is taller, we need to center horizontally but
clamp vertically. We can only do that if by combining the two
functions.
12 years ago
Kristian Høgsberg
719b2158e7
image: Add keyhandler to handle keyboard zoom
12 years ago
Kristian Høgsberg
a369ff5273
image: Set resize handler and center view on resize/fullscreen
12 years ago
Jonas Ådahl
972d506de3
clients: image: Add support for panning and zooming
...
Support for zooming by using ctrl + the vertical axis (scrolling upwards
zooms in) and panning by both the horizontal and vertical axis as well
as click and drag was added to demonstrate how axis should work.
Signed-off-by: Jonas Ådahl <jadahl@gmail.com>
12 years ago
Philipp Brüschweiler
1f54f17ef8
image: handle multiple images correctly
...
Don't stop the application when only one window is closed. Don't stall
indefinitely if no valid image file is given as input.
12 years ago
Juan Zhao
19a4c2db26
image: Don't segfault when the file doesn't exist
...
Don't create a window when the file doesn't exist.
https://bugs.freedesktop.org/show_bug.cgi?id=52450
12 years ago
Kristian Høgsberg
df0faf7983
image: Add fullscreen support
12 years ago
Kristian Høgsberg
5a315bc72d
Move cairo-util to shared/
13 years ago
Kristian Høgsberg
f02a649a3c
Consolidate image loading code and move to shared/
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
009ac0a965
window: Dont take width and height in window constructor
...
Always set this by scheduling an initial resize.
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
cadd0f5cd9
clients/image: Delete old old key code
13 years ago
Pekka Paalanen
50719bce2a
Fix inconsistent #include style
...
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
3a69627f43
window: Stop using glib mainloop in toy toolkit
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
Tim Wiederhake
b4b67344f0
Define global handler on display creation
...
Otherwise the initial announcement of interfaces gets lost.
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
e164e4ef72
Use cairo_push_group() for all double buffering, drop window_copy_*()
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
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
Kristian Høgsberg
2bb3ebe1e4
Create socket in /var/run/user/${HOME}
...
Use the runtime dir from XDG Base Directory Specification for creating the
socket in a directory only the user can read and write.
14 years ago
Yuval Fledel
e9f5e36730
Make clients exit orderly when there is no connection
14 years ago
Johan Bilien
990854d019
Fixed a bogus call to cairo_destroy
14 years ago
Kristian Høgsberg
012a007771
Add small client for testing shm surfaces
14 years ago
Kristian Høgsberg
9d69f8e796
Replace commit/ack/frame protocol with simpler sync and frame callbacks
14 years ago
Kristian Høgsberg
43788b13df
Update keyboard focus handler signatures
14 years ago
Kristian Høgsberg
f252d6a98e
Update to use eglGetDRMDisplayMESA()
15 years ago
Kristian Høgsberg
c8c3734ef9
Set window user data using separate function
15 years ago
Kristian Høgsberg
80d746f6e3
Consolidate redraw scheduling in window.c
15 years ago
Kristian Høgsberg
0953162db8
Fix resizing
15 years ago
Kristian Høgsberg
478d9265f9
Send device name at connect time
15 years ago
Kristian Høgsberg
7824d81e07
Consolidate more code in clients/window.c
15 years ago
Kristian Høgsberg
b2a432ef18
Move clients to subdirectory
15 years ago
Kristian Høgsberg
a341fa016c
Use FBOs instead of eagle-specific API
15 years ago
Chris Wilson
0de19eb688
Add an image viewer client
16 years ago