mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-29 15:44:02 +00:00
window_layouter: improve rules formatting
This is a follow-up patch for "window_layouter: add dynamic screen handling". Issue #3646
This commit is contained in:
parent
c340f57207
commit
c3fb81d1a1
@ -228,6 +228,7 @@ class Window_layouter::Target_list
|
||||
if (!_rules.constructed())
|
||||
return;
|
||||
|
||||
xml.append("\n");
|
||||
_rules->xml().for_each_sub_node("screen", [&] (Xml_node screen) {
|
||||
if (screen_name.valid()) {
|
||||
Target::Name const name =
|
||||
@ -236,6 +237,7 @@ class Window_layouter::Target_list
|
||||
if (screen_name != name)
|
||||
return;
|
||||
}
|
||||
xml.append("\t");
|
||||
screen.with_raw_node([&] (char const *start, size_t length) {
|
||||
xml.append(start, length); });
|
||||
xml.append("\n");
|
||||
@ -249,6 +251,7 @@ class Window_layouter::Target_list
|
||||
if (screen_name == name)
|
||||
return;
|
||||
|
||||
xml.append("\t");
|
||||
screen.with_raw_node([&] (char const *start, size_t length) {
|
||||
xml.append(start, length); });
|
||||
xml.append("\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user