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
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
14 years ago
Kristian Høgsberg
e9d37bdc5f
Use a transient object for the dnd session
14 years ago
Kristian Høgsberg
e968f9c6b9
Provide visual feedback as to whether drop is supported
...
Change the cursor in response to target events.
14 years ago
Kristian Høgsberg
1d7ffd32f8
Set pointer image only in response to 'target' event
14 years ago
Kristian Høgsberg
506e20eed9
More work on dnd
14 years ago
Kristian Høgsberg
9a686243b6
Add a drag and drop test client
14 years ago
Kristian Høgsberg
808fd41861
Drop coordinates from buttons press, add timestamp to events
15 years ago
Kristian Høgsberg
94adf6cb9e
Use libxkbcommon for mapping keycodes to keysyms
15 years ago
Kristian Høgsberg
c8c3734ef9
Set window user data using separate function
15 years ago
Kristian Høgsberg
dcb71b62a0
Update decoration drawing to be less cairo path happy
15 years ago
Kristian Høgsberg
80d746f6e3
Consolidate redraw scheduling in window.c
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
a85fe3cf45
Use cairo-gl in clients
15 years ago
Kristian Høgsberg
f88ae45e41
Make clients at least compile for now
15 years ago
Kristian Høgsberg
a341fa016c
Use FBOs instead of eagle-specific API
15 years ago
Kristian Høgsberg
3c248cc9b6
Paint terminal cursor hollow when focus is lost.
16 years ago
Kristian Høgsberg
5544491240
Move keymap to window.c
16 years ago
Kristian Høgsberg
43c28eee32
Add a toy-display object that caches state.
...
This will be GdkDisplay for GTK+ on Wayland etc. This restores
the terminal fullscreen mode.
16 years ago
Kristian Høgsberg
0ac16f056d
Switch to cairo-drm, drop struct buffer hacks.
16 years ago
Kristian Høgsberg
0395f30e65
Add a fullscreen mode to the terminal.
16 years ago
Kristian Høgsberg
221067654c
Let clients override the suggested size on resize.
...
This lets gears enforce a square aspect ration and minimum size of 300x300
and the terminal now properly resizes in steps of character cells.
16 years ago
Kristian Høgsberg
1584c57edc
Snap terminal size to an integer number of character cells.
16 years ago
Kristian Høgsberg
6e83d58153
Add keyboard input to terminal.
16 years ago