Skip to content

Commit 19b81d2

Browse files
authored
Merge pull request #830 from o-sdn-o/gui-bridge
Fix window menu buttons not updating on startup
2 parents b8af079 + 44b06b7 commit 19b81d2

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

doc/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ Vtm can function perfectly well without explicit installation. However, for ease
335335
sudo vtm --install
336336
```
337337

338-
Note: Mouse support in the Linux VGA Console (in-kernel console) requires direct access to mouse devices. The command `sudo vtm --mouse` grants access to pointing devices for all users (chmod 0666).
338+
Note: Mouse support in the Linux VGA Console (in-kernel console) requires direct access to mouse devices. The command `sudo vtm --mouse` grants access to pointing devices for all users.
339339

340340
### Run vtm desktop
341341

src/netxs/desktopio/ansivt.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1492,10 +1492,12 @@ namespace netxs::ansi
14921492
// vt_parser: Static UTF-8/ANSI parser.
14931493
void parse(view utf8, T*& client)
14941494
{
1495+
auto decsg = client->decsg;
14951496
auto s = [&](auto const& traits, qiew utf8)
14961497
{
14971498
client->defer = faux;
14981499
intro.execute(traits.control, utf8, client); // Make one iteration using firstcmd and return.
1500+
decsg = client->decsg; // Sync DECSG mode if buffer/client changed. //todo Should we make it shared among buffers?
14991501
return utf8;
15001502
};
15011503
auto y = [&](auto const& cluster)
@@ -1508,7 +1510,7 @@ namespace netxs::ansi
15081510
client->ascii(plain);
15091511
client->defer = true;
15101512
};
1511-
utf::decode(s, y, a, utf8, client->decsg);
1513+
utf::decode(s, y, a, utf8, decsg);
15121514
client->flush();
15131515
}
15141516
// vt_parser: Static UTF-8/ANSI parser proc.

src/netxs/desktopio/application.hpp

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ namespace netxs::app
2222

2323
namespace netxs::app::shared
2424
{
25-
static const auto version = "v2025.10.16";
25+
static const auto version = "v2025.10.17";
2626
static const auto repository = "https://github.com/directvt/vtm";
2727
static const auto usr_config = "~/.config/vtm/settings.xml"s;
2828
static const auto sys_config = "/etc/vtm/settings.xml"s;
@@ -642,6 +642,14 @@ namespace netxs::app::shared
642642
return [&](eccc appcfg, settings& config)
643643
{
644644
auto applet_ptr = builder_proc(appcfg, config);
645+
auto& applet = *applet_ptr;
646+
applet.LISTEN(tier::anycast, e2::form::upon::started, root_ptr)
647+
{
648+
applet.base::enqueue([&](auto&) // Enqueue the trigger to window menu update.
649+
{
650+
applet.base::signal(tier::release, e2::form::upon::started); // Fire a release started event after all initializations.
651+
});
652+
};
645653
return applet_ptr;
646654
};
647655
}

0 commit comments

Comments
 (0)