mirror of
https://github.com/labwc/labwc.git
synced 2026-04-12 08:21:13 -04:00
Merge branch 'allcontext' into magnifier
This commit is contained in:
commit
22914f9142
5 changed files with 11 additions and 1 deletions
|
|
@ -142,6 +142,8 @@ context_from_str(const char *str)
|
|||
return LAB_SSD_ROOT;
|
||||
} else if (!strcasecmp(str, "Root")) {
|
||||
return LAB_SSD_ROOT;
|
||||
} else if (!strcasecmp(str, "All")) {
|
||||
return LAB_SSD_ALL;
|
||||
}
|
||||
wlr_log(WLR_ERROR, "unknown mouse context (%s)", str);
|
||||
return LAB_SSD_NONE;
|
||||
|
|
|
|||
|
|
@ -823,12 +823,15 @@ handle_release_mousebinding(struct server *server,
|
|||
*/
|
||||
consumed_by_frame_context |=
|
||||
mousebind->context == LAB_SSD_FRAME;
|
||||
consumed_by_frame_context |=
|
||||
mousebind->context == LAB_SSD_ALL;
|
||||
}
|
||||
continue;
|
||||
default:
|
||||
continue;
|
||||
}
|
||||
consumed_by_frame_context |= mousebind->context == LAB_SSD_FRAME;
|
||||
consumed_by_frame_context |= mousebind->context == LAB_SSD_ALL;
|
||||
actions_run(ctx->view, server, &mousebind->actions,
|
||||
/*resize_edges*/ 0);
|
||||
}
|
||||
|
|
@ -909,6 +912,8 @@ handle_press_mousebinding(struct server *server, struct cursor_context *ctx,
|
|||
*/
|
||||
consumed_by_frame_context |=
|
||||
mousebind->context == LAB_SSD_FRAME;
|
||||
consumed_by_frame_context |=
|
||||
mousebind->context == LAB_SSD_ALL;
|
||||
mousebind->pressed_in_context = true;
|
||||
}
|
||||
continue;
|
||||
|
|
@ -923,6 +928,7 @@ handle_press_mousebinding(struct server *server, struct cursor_context *ctx,
|
|||
continue;
|
||||
}
|
||||
consumed_by_frame_context |= mousebind->context == LAB_SSD_FRAME;
|
||||
consumed_by_frame_context |= mousebind->context == LAB_SSD_ALL;
|
||||
actions_run(ctx->view, server, &mousebind->actions, resize_edges);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -309,7 +309,7 @@ ssd_destroy(struct ssd *ssd)
|
|||
bool
|
||||
ssd_part_contains(enum ssd_part_type whole, enum ssd_part_type candidate)
|
||||
{
|
||||
if (whole == candidate) {
|
||||
if (whole == candidate || whole == LAB_SSD_ALL) {
|
||||
return true;
|
||||
}
|
||||
if (whole == LAB_SSD_PART_TITLEBAR) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue