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.
2013-02-20 15:27:49 -05:00
Pekka Vuorela
64988feb13
PDF viewer to run until and only when it has existing windows
...
I.e. not to close whole application when one of the windows
is closed.
2012-09-25 11:24:49 -04:00
Pekka Vuorela
2dbe4c632e
Fix memory leak in PDF viewer
2012-09-25 11:24:49 -04:00
Pekka Vuorela
2bd429b734
Fix PDF viewer not to produce garbage windows for nonexistent files
...
Was calling window_flush() on redraw handler which already happens on
window redrawing.
2012-09-25 11:24:49 -04:00
Kristian Høgsberg
67ace20f8e
window.c: Add fullscreen handler to keep fullscreen state consistent
2012-07-23 21:56:31 -04:00
Daniel Stone
c9785eacca
Use enum wl_keyboard_key_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_keyboard_key_state enum, and explicit comparisons.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
2012-05-31 15:43:03 -04:00
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>
2012-05-31 15:42:47 -04:00
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>
2012-05-07 12:57:11 -04:00
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>
2012-05-07 12:54:14 -04:00
Kristian Høgsberg
f02a649a3c
Consolidate image loading code and move to shared/
2012-03-12 01:40:59 -04:00
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.
2012-03-12 01:28:50 -04:00
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.
2012-02-23 17:30:54 -05:00
Kristian Høgsberg
66c0880c58
view: Don't schedule resize after setting fullscreen
...
window_set_fullscreen will schedule a resize or wait for the configure
event as needed.
2012-02-16 23:19:41 -05:00
Kristian Høgsberg
009ac0a965
window: Dont take width and height in window constructor
...
Always set this by scheduling an initial resize.
2012-01-31 15:24:48 -05:00
Kristian Høgsberg
ab5dacdac8
view: Make view compile again
2012-01-12 10:48:51 -05:00
Kristian Høgsberg
29af3ebce6
window: Make decorations just a widget
...
Woohoo, only took 25 commits of refactoring to get to this point.
2012-01-10 22:41:55 -05:00
Kristian Høgsberg
bb97700474
window: Get rid of the window child allocation concept
2012-01-10 19:11:42 -05:00
Kristian Høgsberg
b67e94b170
window: Make resize and redraw handlers widget vfuncs
2012-01-10 14:22:10 -05:00
Kristian Høgsberg
a8a0db3497
window: Move button handler to widget
2012-01-09 11:12:05 -05:00
Kristian Høgsberg
c5241f5b73
Never include wayland-util.h directly
...
And fix a missing "" to <> conversion for wayland-client.h include.
2011-11-22 09:35:14 -05:00
Pekka Paalanen
50719bce2a
Fix inconsistent #include style
...
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
2011-11-22 09:27:03 -05:00
Eugeni Dodonov
397b908d7b
Add missing include for gio.h.
...
This is needed by GFile, used by view.c.
Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com>
2011-10-24 11:58:24 -04:00
Kristian Høgsberg
41abb2865e
view: Fix reference to wayland-glib.h
2011-09-21 08:47:55 -04:00
Benjamin Franzke
4b87a13974
clients: Fix typos
...
And forgotten display_create conversion in view.c.
2011-09-01 10:36:53 +02:00
Kristian Høgsberg
b3bef626ce
view: Set opaque when going fullscreen
2011-05-16 14:46:47 -04:00
Kristian Høgsberg
393d47aa6f
view: Add fullscreen option
2011-05-16 10:43:32 -04:00
Kristian Høgsberg
12283cc9a2
view: Set resize handler so fullscreen doesn't crash
2011-05-16 10:43:32 -04:00
Tim Wiederhake
b4b67344f0
Define global handler on display creation
...
Otherwise the initial announcement of interfaces gets lost.
2011-04-11 13:16:33 -04:00
Tim Wiederhake
80bf6f78e4
clients/view: Fix memory leak
2011-01-25 16:33:34 -05:00
Tim Wiederhake
6685aceae3
clients/view: Don't try to show inexistant files
2011-01-25 16:33:25 -05:00
Tim Wiederhake
9aad08e91b
clients/view: Allow relative paths
2011-01-25 16:33:00 -05:00
Tim Wiederhake
655467a5d2
clients/view: Add mousewheel and arrow keys
2011-01-25 16:32:37 -05:00
Tim Wiederhake
7e182ef13b
clients/view: Remove unnecessary variables
2011-01-25 16:29:51 -05:00
Tim Wiederhake
1afc9a98fa
clients/view: Do not browse outside document range
2011-01-25 16:29:27 -05:00
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.
2011-01-25 15:16:01 -05:00
Kristian Høgsberg
248c1b61ce
Add an orange pop-up menu to test the new map_transient request
2011-01-21 18:03:15 -05:00
Kristian Høgsberg
67cac8a565
Pass input device and time in key_handler callback
...
Move the modifiers to a input device getter function.
2011-01-19 14:25:13 -05:00
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().
2011-01-11 10:00:52 -05:00
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.
2010-12-17 09:53:12 -05:00
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.
2010-12-01 16:53:01 -05:00
Yuval Fledel
e9f5e36730
Make clients exit orderly when there is no connection
2010-11-22 15:19:43 -05:00
Kristian Høgsberg
9d69f8e796
Replace commit/ack/frame protocol with simpler sync and frame callbacks
2010-09-03 14:46:38 -04:00
Kristian Høgsberg
43788b13df
Update keyboard focus handler signatures
2010-07-28 23:51:05 -04:00
Kristian Høgsberg
f252d6a98e
Update to use eglGetDRMDisplayMESA()
2010-07-08 20:15:10 -04:00
Kristian Høgsberg
c8c3734ef9
Set window user data using separate function
2010-06-25 11:19:22 -04:00
Kristian Høgsberg
80d746f6e3
Consolidate redraw scheduling in window.c
2010-06-14 23:52:50 -04:00
Kristian Høgsberg
0953162db8
Fix resizing
2010-06-14 23:22:15 -04:00
Kristian Høgsberg
478d9265f9
Send device name at connect time
2010-06-08 20:34:11 -04:00
Kristian Høgsberg
7824d81e07
Consolidate more code in clients/window.c
2010-06-08 14:59:44 -04:00
Kristian Høgsberg
b2a432ef18
Move clients to subdirectory
2010-06-04 21:46:55 -04:00