mirror of
https://github.com/labwc/labwc.git
synced 2025-11-03 09:01:51 -05:00
cursor: also toggle mousebinds with ToggleKeybinds
Mousebinds can still be applied when the cursor is over their decoration
This commit is contained in:
parent
73095f75cb
commit
024ab280a0
5 changed files with 26 additions and 12 deletions
11
src/view.c
11
src/view.c
|
|
@ -4,6 +4,7 @@
|
|||
#include <strings.h>
|
||||
#include <wlr/types/wlr_output_layout.h>
|
||||
#include <wlr/types/wlr_security_context_v1.h>
|
||||
#include "action.h"
|
||||
#include "buffer.h"
|
||||
#include "common/box.h"
|
||||
#include "common/list.h"
|
||||
|
|
@ -2444,6 +2445,12 @@ view_toggle_keybinds(struct view *view)
|
|||
}
|
||||
}
|
||||
|
||||
bool
|
||||
view_inhibits_actions(struct view *view, struct wl_list *actions)
|
||||
{
|
||||
return view && view->inhibits_keybinds && !actions_contain_toggle_keybinds(actions);
|
||||
}
|
||||
|
||||
void
|
||||
mappable_connect(struct mappable *mappable, struct wlr_surface *surface,
|
||||
wl_notify_func_t notify_map, wl_notify_func_t notify_unmap)
|
||||
|
|
@ -2614,10 +2621,6 @@ view_destroy(struct view *view)
|
|||
zfree(view->tiled_region_evacuate);
|
||||
}
|
||||
|
||||
if (view->inhibits_keybinds) {
|
||||
view->inhibits_keybinds = false;
|
||||
}
|
||||
|
||||
osd_on_view_destroy(view);
|
||||
undecorate(view);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue