Age | Commit message (Collapse) | Author | Files | Lines |
|
This lets us keep argc up to date as the backend picks out arguments
from the argv array.
|
|
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>
|
|
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>
|
|
We no longer depend on xproto, we use xkbcommon keycodes now. Yay!
|
|
Interacts better with interactive resizing, left/right keys now
changes window width.
|
|
Since you can't really have a negative button number.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
|
'state' here meaning 'is it up or down?', obviously.
Signed-off-by: Daniel Stone <daniel@fooishbar.org>
|
|
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.
|
|
Always set this by scheduling an initial resize.
|
|
When a menu self-destructs, free also the widget and struct menu.
As menus are self-destructing, it does not make sense to store the
window pointer, since we cannot clear it automatically. Therefore,
rename window_create_menu() to window_show_menu() that does not return
the window pointer. It also calls window_schedule_redraw() internally.
Fixes Valgrind reported memory leaks.
The alternative would be to explicitly destroy the menu in application's
menu callback.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
Plugs a memory leak.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
Woohoo, only took 25 commits of refactoring to get to this point.
|
|
|
|
|
|
No need to push this to the toolkit users.
|
|
It was just a temporary convenience for moving things over.
|
|
|
|
At least this gives us a way to close the toy toolkit clients.
|
|
This lands the basic behavior of the popup surface type, but there are still
a number of details to be worked out. Mainly there's a hardcoded timeout
to handle the case of releasing the popup button outside any of the
client windows, which triggers popup_end if it happens after the timeout.
Maybe we just need to add that as an argument, or we could add a new event
that fires in this case to let the client decide whether it ends the popup
or not.
|
|
Make resizor quit when you press Esc key.
Call the toytoolkit cleanup functions, properly destroy window, display
and frame callback.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
|
|
Also, we were actually using BTN_MIDDLE before.
|
|
And fix a missing "" to <> conversion for wayland-client.h include.
|
|
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
|
|
|
|
We can just register a global handler directly on the wl_display now.
|
|
|
|
Conflicts:
compositor/compositor.c
|
|
Otherwise the initial announcement of interfaces gets lost.
|
|
This fixes tearing with multi head.
|
|
|
|
|
|
Move the modifiers to a input device getter function.
|
|
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().
|
|
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.
|
|
|
|
|
|
This is an example of how to animate window resizing. The size is
animated by a simple physics model that allows the user to cancel the
animation halfway and still look good.
|