Andre Heider
552d12b10e
terminal: Don't crash on non-ascii chars
...
isalpha() and isdigit() don't like huge values.
Noticed with ascii-art in the shell prompt.
13 years ago
Kristian Høgsberg
2a1aa4efce
terminal: Don't output @ for ASCII NUL
...
Fixes visual bell in screen.
13 years ago
Kristian Høgsberg
ae27737b28
window.c: Use pointer enter serial for setting cursor
13 years ago
Pekka Paalanen
76fc57e75c
simple-touch: use proper damage in touch_paint()
...
Should reduce update overhead.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Pekka Paalanen
0768419393
simple-touch: fix off-by-one in position checks
...
Fix the off by one error in checking whether we can draw the marker
without exceeding buffer dimensions.
Fixes a segfault.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Pekka Paalanen
55b7cb24e0
simple-touch: more colors and thicker marks
...
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Pekka Paalanen
7e94a98e07
simple-touch: respond to ping protocol
...
Without this, it won't get any input anymore.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
13 years ago
Pekka Paalanen
e288a0f415
window: warn on cursor load failure
13 years ago
Kristian Høgsberg
023be102d7
window.c: Set input region after (potentially) adjusting the surface size
...
Regressed in dd263e546b
, spotted by Scott Moreau <oreaus@gmail.com>
13 years ago
Kristian Høgsberg
321e8b7fd3
gears: Exit on ESC
13 years ago
Ander Conselvan de Oliveira
69f9840bed
simple-egl: Add keyboard fullscreen toggle
...
Make simple-egl toggle the fullscreen state whenever the key F11 is
pressed. A sync callback is used to stop drawing while the surface has
not received the configure event, to prevent a buffer with the windowed
size to be attached to the surface after the set_fullscreen request.
13 years ago
Kristian Høgsberg
2995c517c5
gears: Keep gears inside screen in fullscreen mode
13 years ago
Olivier Blin
7679d9a62e
gears: add a warning about refresh rate limitation
13 years ago
Olivier Blin
a1d0cf5d69
gears: show FPS count (as in glxgears from mesa/demos)
13 years ago
Kristian Høgsberg
4fc1535c0a
window: Handle Alt-F4 to close windows
13 years ago
Andre Heider
82b4c1bc6b
window.c: Remove xkb leftovers
13 years ago
Olivier Blin
fa820efaf0
gears: add fullscreen support
13 years ago
Kristian Høgsberg
d1936b9e2b
desktop-shell: Break command lines into env vars, executable and arguments
...
We now support specifying environment variables and arguments in launchers
by saying
path=GDK_BACKEND=wayland gnome-terminal --full-screen
for example.
https://bugs.freedesktop.org/show_bug.cgi?id=47920
13 years ago
Kristian Høgsberg
df0faf7983
image: Add fullscreen support
13 years ago
Kristian Høgsberg
67ace20f8e
window.c: Add fullscreen handler to keep fullscreen state consistent
13 years ago
Kristian Høgsberg
0fd49aa886
dnd: Clip flowers to window content area
...
https://bugs.freedesktop.org/show_bug.cgi?id=52420
13 years ago
Scott Moreau
ec116022ec
desktop-shell: Declare grab_cursor as enum cursor_type.
13 years ago
Kristian Høgsberg
0e696478a9
Handle new transform argument in wl_output.geometry event
13 years ago
Philipp Brüschweiler
f25602bdc0
Extract the text_model_manager interface from input_method
...
This is necessary because all clients need a way to create
text_models, but only one client at a time can be bound to
the input_method global (else we don't know to whom we are
supposed to send events).
13 years ago
Philipp Brüschweiler
591cfca4e8
editor: deactivate old text model before activating the new one
13 years ago
Kristian Høgsberg
d3a1965a3d
clients: Implement minimum size for toy toolkit clients
...
We default to setting the minimum size to the initial size. To set a
different minimum size than the initial size, set the minimum size first
then then initial size. Good enough for a toy toolkit.
https://bugs.freedesktop.org/show_bug.cgi?id=50263
13 years ago
Ander Conselvan de Oliveira
07a91cd9fd
desktop-shell: Don't get a shell surface for the grab surface
...
The grab surface does not depend on any of the shell surface
functionality, so don't allocated one.
13 years ago
Ander Conselvan de Oliveira
ddca49600f
window: Workaround a stuck frame callback on the cursor surface
...
It is possible that a client loses the focus between receiving a
pointer.enter event and sending a pointer.set_cursor request. In that
case, the cursor surface might not be mapped and the frame callback
requested on it will never trigger.
Work around this by trying to remap the cursor surface whenever there
is a frame callback and the serial for the enter event is higher than
the cursor serial.
13 years ago
Scott Moreau
fe89f07e33
toytoolkit: Remove obsolete function window_set_custom().
13 years ago
Scott Moreau
a6e24d3104
wscreensaver: Fix --demo mode.
13 years ago
Philipp Brüschweiler
c547477e27
Remove dead code
...
window->title is always NULL inside window_create_internal
13 years ago
Kristian Høgsberg
dd263e546b
window.c: Only set input region when we have a decoration
...
https://bugs.freedesktop.org/show_bug.cgi?id=50490
13 years ago
Daniel Stone
d4756b7955
toytoolkit: Remove redundant XKB free
...
We already unref these in fini_xkb().
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
13 years ago
Martin Olsson
c663b22c20
clients: Free resources on exit in eventdemo
13 years ago
Martin Olsson
8df662ad87
clients: Silence 2x gcc 4.6.3 "warn_unused_result" compiler warnings
...
window.c:1173:6: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
desktop-shell.c:305:6: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
13 years ago
Martin Olsson
444799adbb
clients: Don't leak "menu" on error path in clients/window.c
13 years ago
Martin Olsson
ff52193ee8
clients: Add clients/weston-screensaver to clients/.gitignore
13 years ago
Kristian Høgsberg
0fe782bdb5
terminal: Extend selection to end of line when selecting past last char
13 years ago
Kristian Høgsberg
0dee6475bd
terminal: Insert newlines when copying multiple lines
13 years ago
Kristian Høgsberg
8268d41410
terminal: Handle selection for pointer positions outside widget correctly
...
That is, don't crash and select entire first/last line when the pointer
is above or below widget.
13 years ago
Kristian Høgsberg
8733b33f9f
window.c: Don't allocate proxy manually
...
With the wayland change to automatically allocate the client side proxy
manually, we can now drop the code (and the FIXME) that did that and just
receive the proxy from the callback arguments.
13 years ago
Kristian Høgsberg
29784402e1
terminal: Add a terminal enter handler for setting I-beam cursor
...
Now that the mod+click shortcuts change the cursor, this was suddenly obvious.
13 years ago
Ander Conselvan de Oliveira
b9d2a0fc0a
shell: Show approprite cursors during move and resize grabs
...
This patch expands the busy cursor mechanism so that it is possible for
the desktop-shell client to show the appropriate cursor during grabs.
13 years ago
Kristian Høgsberg
18e928dfb8
terminal: Scroll selection with terminal contents
13 years ago
Kristian Høgsberg
38912df847
terminal: Make font size configurable
13 years ago
Kristian Høgsberg
333db0a17e
terminal: Implement word and line based selection
...
Double-click to select by word, triple click to select by line.
13 years ago
Kristian Høgsberg
8150b190d6
shell: Take a wl_surface as parent for transient and popup windows
13 years ago
Kristian Høgsberg
0636ac307e
shell: Make input_panel just a regular wl_surface
13 years ago
Kristian Høgsberg
1a73a6335d
shell: Make screensaver just a wl_surface
13 years ago
Kristian Høgsberg
730c94d62e
shell: Make the lock surface just a plain wl_surface too
13 years ago