~alan-griffiths/miral/workaround-1667645

« back to all changes in this revision

Viewing changes to miral/window_management_trace.cpp

  • Committer: Alan Griffiths
  • Date: 2017-02-17 12:46:18 UTC
  • mfrom: (497.7.45 miral4)
  • Revision ID: alan@octopull.co.uk-20170217124618-vqlhp26kejycwtz6
[libmiral] Support for shells implementing workspaces

Show diffs side-by-side

added added

removed removed

Lines of Context:
532
532
}
533
533
MIRAL_TRACE_EXCEPTION
534
534
 
 
535
auto miral::WindowManagementTrace::create_workspace() -> std::shared_ptr<Workspace>
 
536
try {
 
537
    mir::log_info("%s", __func__);
 
538
    return wrapped.create_workspace();
 
539
}
 
540
MIRAL_TRACE_EXCEPTION
 
541
 
 
542
void miral::WindowManagementTrace::add_tree_to_workspace(
 
543
    miral::Window const& window, std::shared_ptr<miral::Workspace> const& workspace)
 
544
try {
 
545
    mir::log_info("%s window=%s, workspace =%p", __func__, dump_of(window).c_str(), workspace.get());
 
546
    wrapped.add_tree_to_workspace(window, workspace);
 
547
}
 
548
MIRAL_TRACE_EXCEPTION
 
549
 
 
550
void miral::WindowManagementTrace::remove_tree_from_workspace(
 
551
    miral::Window const& window, std::shared_ptr<miral::Workspace> const& workspace)
 
552
try {
 
553
    mir::log_info("%s window=%s, workspace =%p", __func__, dump_of(window).c_str(), workspace.get());
 
554
    wrapped.remove_tree_from_workspace(window, workspace);
 
555
}
 
556
MIRAL_TRACE_EXCEPTION
 
557
 
 
558
void miral::WindowManagementTrace::for_each_workspace_containing(
 
559
    miral::Window const& window, std::function<void(std::shared_ptr<miral::Workspace> const&)> const& callback)
 
560
try {
 
561
    mir::log_info("%s window=%s", __func__, dump_of(window));
 
562
    wrapped.for_each_workspace_containing(window, callback);
 
563
}
 
564
MIRAL_TRACE_EXCEPTION
 
565
 
 
566
void miral::WindowManagementTrace::for_each_window_in_workspace(
 
567
    std::shared_ptr<miral::Workspace> const& workspace, std::function<void(miral::Window const&)> const& callback)
 
568
try {
 
569
    mir::log_info("%s workspace =%p", __func__, workspace.get());
 
570
    wrapped.for_each_window_in_workspace(workspace, callback);
 
571
}
 
572
MIRAL_TRACE_EXCEPTION
 
573
 
535
574
auto miral::WindowManagementTrace::place_new_window(
536
575
    ApplicationInfo const& app_info,
537
576
    WindowSpecification const& requested_specification) -> WindowSpecification