Pekka Paalanen
c1765c67b3
move config parser to a convenience library
...
Create a new directory for convenience librariers that can be shared
between compositor components and clients.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Pekka Paalanen
9d1613eb4a
wl_shell_surface adaptation
...
Protocol changes in Wayland core introduced a new interface
wl_shell_surface, and moved all wl_shell surface methods into it. Adapt
the compositor and its Wayland backend, shell plugin, and all clients to
the new interface.
Depends on the Wayland core commit "protocol: introduce wl_shell_surface"
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
53ff2f6672
window.c: Cache outputs
13 years ago
Kristian Høgsberg
47fe08aad5
Implement the new dnd/selection protocol
...
The new protocol splits dnd/selection from wl_shell and allows us to move
the implementation out of shell.c.
13 years ago
Pekka Paalanen
668dd56918
window: add a helper for config file paths
...
Add a helper function, that constructs a path to a config file from
XDG_CONFIG_HOME environment variable, by the rules of
http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
Make desktop-shell find its config file from XDG_CONFIG_HOME. This
allows to have a personal config file without continuously fighting with
git about wayland-desktop-shell.ini.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Kristian Høgsberg
ac3a59a0d1
window: Add a cheesy parser for ini-files, use it in desktop-shell
13 years ago
Kristian Høgsberg
bcee9a4b25
desktop-shell: Add beginning of pop-up menu to panel
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
Benjamin Franzke
47eb8f4e91
window: Remove display_flush_cairo_device
...
Rather add a flush_surface utility that
flushed the cairo_device thats associated to a surface.
13 years ago
Kristian Høgsberg
e28d05b0ad
window.c: Move window items to window.c
13 years ago
Kristian Høgsberg
3a69627f43
window: Stop using glib mainloop in toy toolkit
13 years ago
Kristian Høgsberg
0c29eb292e
clients: Add a simple desktop-shell app
...
This just provides the background surface and the top panel.
14 years ago
Kristian Høgsberg
900b226ac1
window: Add enter/leave handlers
14 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.
14 years ago
Kristian Høgsberg
3be87d1931
window: Add support for opaque windows
14 years ago
Benjamin Franzke
bde55ec8e4
Implement buffer.damage in shm, use it in window.c
14 years ago
Kristian Høgsberg
01aed1c665
Remove double definition of window_get_wl_surface()
14 years ago
Kristian Høgsberg
386857ba6a
Add struct window accessor for the wl_surface
14 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
297c6313eb
Port window.c to use wayland-egl
14 years ago
Kristian Høgsberg
734a7501b6
Remove frame handler prototype
...
I messed up the merge.
14 years ago
Tim Wiederhake
dc3f817538
remove declaration without definition from window.h
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
6bccebee23
terminal: Just send the pty master fd to receive the selection.
...
LOL!!1
14 years ago
Kristian Høgsberg
e164e4ef72
Use cairo_push_group() for all double buffering, drop window_copy_*()
14 years ago
Kristian Høgsberg
23c03ad981
Use libxkbcommon #defines for modifiers
14 years ago
Kristian Høgsberg
58eec36f68
Add proof-of-concept selection support to terminal
...
Next will be to support mouse selections so we can copy and paste
something more interesting than just 'selection data'.
14 years ago
Kristian Høgsberg
67cac8a565
Pass input device and time in key_handler callback
...
Move the modifiers to a input device getter function.
14 years ago
Kristian Høgsberg
943741cb40
Use the global handler in dnd instead of custom drag_offer hook
14 years ago
Kristian Høgsberg
b46df05fa8
window: Add a catch-all global handler hook
14 years ago
Kristian Høgsberg
8def264241
Check for cairo-egl instead of just cairo-gl
14 years ago
Callum Lowcay
ef57a9b788
terminal: Window operations
...
Implement OSC 1 (set window title), and some basic CSI t window
operations.
Signed-off-by: Callum Lowcay <callum@callumscode.com>
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
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
Kristian Høgsberg
41da90897c
Don't hardcode offered dnd types in window.c
14 years ago
Fred Morcos
c4b8c457e8
fix missing includes in clients/window.h and clients/wayland-glib.h
14 years ago
Bryce Harrington
f57303f7cf
Expose window_set_surface() in window.h
...
gears.c uses this routine and was complaining about it being implicitly
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
012a007771
Add small client for testing shm surfaces
14 years ago
Kristian Høgsberg
d0c3b9da22
Fall back to cairo image backend and shm surface if we don't have cairo gl
14 years ago
Kristian Høgsberg
9d69f8e796
Replace commit/ack/frame protocol with simpler sync and frame callbacks
15 years ago
Kristian Høgsberg
e9d37bdc5f
Use a transient object for the dnd session
15 years ago
Kristian Høgsberg
e968f9c6b9
Provide visual feedback as to whether drop is supported
...
Change the cursor in response to target events.
15 years ago
Kristian Høgsberg
1d7ffd32f8
Set pointer image only in response to 'target' event
15 years ago
Kristian Høgsberg
506e20eed9
More work on dnd
15 years ago