Opened 13 years ago
Last modified 4 years ago
#8535 assigned enhancement
BRoster should expose a public API to show or hide a team
Reported by: | hey68you | Owned by: | nobody |
---|---|---|---|
Priority: | normal | Milestone: | Unscheduled |
Component: | Kits/Application Kit | Version: | R1/Development |
Keywords: | BRoster | Cc: | hey68you@… |
Blocked By: | Blocking: | ||
Platform: | All |
Description (last modified by )
There are 2 private API functions that Deskbar uses to show and hide all windows of a running application:
The 2 private functions are:
They are declared in headers/private/interface/WindowInfo.h and implemented in InterfaceDefs.cpp
do_minimize_team(...); do_bring_to_front_team(...);
I would be nice if these could be exposed as public APIs in BRoster (which already has the related public function):
status_t ActivateApp(team_id team) const;
(The problem with ActivateApp() is that if the application is currently hidden, this method will not un-hide it).
It was proposed as a start that we create 2 new public functions in BRoster:
status_t HideTeam(team_id team); status_t BringTeamToFront(team_id team);
Change History (4)
comment:2 by , 13 years ago
@X512 - re: security....
A few of points.
1) These functions are already available if you forward declare them in you app and link against libbe.
2) The tasks of minimiziing all apps and bringing your "dangerous" window to front is also already available through scripting (using the hey command in the shell or send programatically)
3) The user would always be able to press ctrl+alt+del to kill the "dangerous" app.
Regards.
comment:3 by , 8 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:4 by , 4 years ago
Description: | modified (diff) |
---|---|
Milestone: | R1 → Unscheduled |
Don'n forget that this functions potentially dangerous. Some bad program can always minimize all apps or always bring it's window to front and make system unusable.
For now sequrity is not a priority of Haiku, but I don't think that opening new sequrity holes is good idea.