mirror of
https://github.com/labwc/labwc.git
synced 2026-02-07 04:07:42 -05:00
osd: add config option to disable osd
This commit is contained in:
parent
5aa5c12371
commit
00ebcdc290
5 changed files with 17 additions and 6 deletions
|
|
@ -442,6 +442,8 @@ entry(xmlNode *node, char *nodename, char *content)
|
|||
rc.snap_edge_range = atoi(content);
|
||||
} else if (!strcasecmp(nodename, "topMaximize.snapping")) {
|
||||
rc.snap_top_maximize = get_bool(content);
|
||||
} else if (!strcasecmp(nodename, "cycleViewOSD.core")) {
|
||||
rc.cycle_view_osd = get_bool(content);
|
||||
} else if (!strcasecmp(nodename, "cycleViewPreview.core")) {
|
||||
rc.cycle_preview_contents = get_bool(content);
|
||||
} else if (!strcasecmp(nodename, "cycleViewOutlines.core")) {
|
||||
|
|
@ -556,6 +558,7 @@ rcxml_init(void)
|
|||
rc.screen_edge_strength = 20;
|
||||
rc.snap_edge_range = 1;
|
||||
rc.snap_top_maximize = true;
|
||||
rc.cycle_view_osd = true;
|
||||
rc.cycle_preview_contents = false;
|
||||
rc.cycle_preview_outlines = true;
|
||||
rc.workspace_config.popuptime = INT_MIN;
|
||||
|
|
|
|||
14
src/osd.c
14
src/osd.c
|
|
@ -403,12 +403,14 @@ osd_update(struct server *server)
|
|||
return;
|
||||
}
|
||||
|
||||
/* Display the actual OSD */
|
||||
struct output *output;
|
||||
wl_list_for_each(output, &server->outputs, link) {
|
||||
destroy_osd_nodes(output);
|
||||
if (output_is_usable(output)) {
|
||||
display_osd(output);
|
||||
if (rc.cycle_view_osd) {
|
||||
/* Display the actual OSD */
|
||||
struct output *output;
|
||||
wl_list_for_each(output, &server->outputs, link) {
|
||||
destroy_osd_nodes(output);
|
||||
if (output_is_usable(output)) {
|
||||
display_osd(output);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue