| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Also, g_new0 can't fail, so don't check its result value.
|
|
|
|
|
| |
All its code was inside an "#ifdef GRAB_BUTTON", which is not defined
anywhere. Anyway, we don't do mouse grabs here anymore.
|
| |
|
|
|
|
|
|
|
| |
I'll put all the libdbus-based marshallers in that file.
Later I want to have a marshal-gdbus.[ch] counterpart, to let us port
things gradually to gdbus.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
I ran this on each directory with C files:
clang-format -i *.[ch]
"-i" is the in-place option.
I also adjusted the order of #includes for some files which failed to
build after that:
Clang-format reorders blocks of #include directives alphabetically,
but they can be grouped and separated by blank lines. If there is a
blank line between blocks, like
#include "zork.h"
#include "bar.h"
#include "foo.h"
then it will not put zork.h after the other two. The last two header
files will be sorted alphabetically.
We can adjust the formatting of chunks of code by hand with comments
like these:
/* clang-format off */
this code {
is, formatted, by, hand;
}
/* clang-format on */
See https://clang.llvm.org/docs/ClangFormat.html for the general
manual and https://clang.llvm.org/docs/ClangFormatStyleOptions.html
for the style options and the comments described above.
|
| |
|
| |
|
|
|
|
| |
This removes "HAVE_X11" from deviceeventcontroller.h
|
| |
|
|
|
|
|
|
| |
It's never set, and always remained as FALSE.
On the other hand, we lave have_mouse_event_listener, which *is* used.
|
| |
|
| |
|
| |
|
|
|
|
| |
There are no mouse_listeners created anymore.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
And simplify the call to XAllowEvents() since now there is only one case.
|
|
|
|
| |
It was used for the return value of spi_controller_notify_mouselisteners.
|
|
|
|
| |
spi_controller_notify_mouselisteners
|
|
|
|
| |
spi_controller_notify_mouselisteners
|
|
|
|
|
|
|
|
|
|
|
|
| |
This function immediately returns FALSE if there are no
controller->mouse_listeners.
The only place that ever added to the controller->mouse_listeners list
was spi_controller_register_device_listener(), which we removed in the
last commit.
So, remove the function altogether and make the two callers do as if
it just returned FALSE.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
SPI_DEVICE_TYPE_MOUSE
The only place where spi_controller_register_device_listener() is
called is from impl_register_keystroke_listener(), but that function
only ever creates listeners of type SPI_DEVICE_TYPE_MOUSE.
Along with that, remove the SPI_DEVICE_TYPE_MOUSE enum variant as
well, leaving only SPI_DEVICE_TYPE_KBD.
This will let us remove a bunch of code related to mouse_listeners,
which is not used.
|
| |
|
| |
|
| |
|
|
|
|
| |
Remove the unhappy path.
|
|
|
|
| |
It is unused.
|
|
|
|
| |
Per the previous commit, it is unused.
|
|
|
|
|
| |
This was meant to query listeners for mouse events. However, that is
done via the Registry's GetRegisteredEvents method now.
|
| |
|
|
|
|
| |
taking a bus argument
|
| |
|
|
|
|
| |
It is not used in any of them.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
These two pointers were pushed at the same time into controller->message_queue:
message to be processed later
user_data / controller
And later they were popped to handle the message. But since we now
weave the controller via the user_data everywhere, there's no need to
keep an extra copy in the message_queue.
This also leaves homogeneous elements, of the same type, in the
message_queue, for peace of mind.
|
|
|
|
| |
Use the user_data to pass the controller around.
|
| |
|
|
|
|
| |
if it is not used yet
|
| |
|
|
|
|
| |
This makes it clear what the data is, and we'll use it in the next commit.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
not a registry
This function was just extracting the registry->dec, but it's cleaner
if it doesn't peek at the registry's internals. Instead, the registry
can call this function with the DEC it already knows about.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
spi_registry_dec_new() would take an SpiRegistry argument, and
directly set "reg->dec = self" in it.
Instead, we do this now:
* spi_registry_dec_new() no longer takes a registry argument; it was
made independent from it in the previous commit.
* In registry-main.c, we first create the DEC, and then we pass it as
an argument to spi_registry_new(), which now takes an SpiDEController
argument. The registry object only uses the DEC in
spi_remove_device_listeners() when an application is removed.
|
|
|
|
|
|
|
| |
Accessibility_DeviceEventListener_NotifyEvent() does not use its
"registry" argument. Calls to this function were the only place where
dec->registry was purportedly used, so removing the argument will
allow us to decouple the Device Event Controller from the Registry.
|
|
|
|
|
|
|
| |
Both deviceeventcontroller.c and deviceeventcontroller-x11.c had
static spi_error_code variables, but spi_clear_error_state() was
looking at a different variable than the one set by the X error
handler. I think this was just an oversight.
|
|
|
|
|
| |
Don't pull it out of the registry right there. This also moves the
responsibility for incrementing the current id to the caller.
|
| |
|
| |
|