mirror of
https://github.com/labwc/labwc.git
synced 2025-11-09 13:30:01 -05:00
input: extract function
This commit is contained in:
parent
3dd4bc7c3b
commit
ebe81ac591
3 changed files with 17 additions and 5 deletions
|
|
@ -11,6 +11,19 @@
|
|||
#include "input/tablet-tool.h"
|
||||
#include "labwc.h"
|
||||
|
||||
bool
|
||||
tablet_tool_has_focused_surface(struct seat *seat)
|
||||
{
|
||||
struct drawing_tablet_tool *tool;
|
||||
wl_list_for_each(tool, &seat->tablet_tools, link) {
|
||||
if (tool->tool_v2->focused_surface) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static void
|
||||
handle_set_cursor(struct wl_listener *listener, void *data)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue