Skip to content

Commit

Permalink
directvt#86 WIP: Switch to scripting model
Browse files Browse the repository at this point in the history
  • Loading branch information
o-sdn-o committed Dec 22, 2024
1 parent 19e6ce4 commit 0acd374
Show file tree
Hide file tree
Showing 5 changed files with 168 additions and 174 deletions.
2 changes: 1 addition & 1 deletion src/netxs/apps/desk.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,7 @@ namespace netxs::app::desk
parent.LISTEN(tier::release, hids::events::focus::set::any, seed, *oneshot, (oneshot, usrcfg))
{
usrcfg.win = {};
usrcfg.hid = seed.gear_id;
usrcfg.gear_id = seed.gear_id;
boss.base::riseup(tier::release, scripting::events::invoke, usrcfg);
oneshot->reset();
};
Expand Down
10 changes: 2 additions & 8 deletions src/netxs/desktopio/baseui.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -316,14 +316,8 @@ namespace netxs::events::userland
};
SUBSET_XS( action )
{
EVENT_XS( runscript , input::hids ),
EVENT_XS( alwaysontop, input::hids ),
EVENT_XS( warp , input::hids ),
EVENT_XS( close , input::hids ),
EVENT_XS( minimize , input::hids ),
EVENT_XS( maximize , input::hids ),
EVENT_XS( fullscreen , input::hids ),
EVENT_XS( nextwindow , input::hids ),
EVENT_XS( runscript, input::hids ),
EVENT_XS( restore , input::hids ),
};
};
SUBSET_XS( cursor )
Expand Down
2 changes: 1 addition & 1 deletion src/netxs/desktopio/system.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ namespace netxs
text cmd{}; // eccc: Command line to run.
text cfg{}; // eccc: Configuration patch.
twod win{}; // eccc: Console window size.
id_t hid{}; // eccc: Gear id.
id_t gear_id{}; // eccc: Gear id.
};
}
namespace netxs::os
Expand Down
Loading

0 comments on commit 0acd374

Please sign in to comment.