diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-07-09 13:27:56 +0430 |
---|---|---|
committer | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-07-09 13:27:56 +0430 |
commit | 0459a111b2b08237c59fc60da0cb2581037c1716 (patch) | |
tree | a5efe64b3f76cb68e7ebbf2b7a233404bb843a0c /Userland/Services/WindowServer | |
parent | 1fe08759e3abe40b4a91e244db9d5affb59e3e9f (diff) | |
download | serenity-0459a111b2b08237c59fc60da0cb2581037c1716.zip |
Revert "Userland: Add ability to screenshot rectangular region in `shot` (#8515)"
This reverts commit 1c06d772628a0191289fe30edcc143e29ba2ca32.
This was squashed by mistake, the rebased version will follow.
Diffstat (limited to 'Userland/Services/WindowServer')
-rw-r--r-- | Userland/Services/WindowServer/Compositor.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Userland/Services/WindowServer/Compositor.cpp b/Userland/Services/WindowServer/Compositor.cpp index c1ae95202d..f46c925976 100644 --- a/Userland/Services/WindowServer/Compositor.cpp +++ b/Userland/Services/WindowServer/Compositor.cpp @@ -504,8 +504,7 @@ void Compositor::compose() // Paint the window stack. if (m_invalidated_window) { - auto* fullscreen_window = wm.active_fullscreen_window(); - if (fullscreen_window && fullscreen_window->is_opaque()) { + if (auto* fullscreen_window = wm.active_fullscreen_window()) { compose_window(*fullscreen_window); fullscreen_window->clear_dirty_rects(); } else { @@ -1072,8 +1071,7 @@ void Compositor::recompute_occlusions() bool window_stack_transition_in_progress = m_transitioning_to_window_stack != nullptr; auto& main_screen = Screen::main(); - auto* fullscreen_window = wm.active_fullscreen_window(); - if (fullscreen_window) { + if (auto* fullscreen_window = wm.active_fullscreen_window()) { // TODO: support fullscreen windows on all screens auto screen_rect = main_screen.rect(); wm.for_each_visible_window_from_front_to_back([&](Window& w) { @@ -1101,8 +1099,7 @@ void Compositor::recompute_occlusions() }); m_opaque_wallpaper_rects.clear(); - } - if (!fullscreen_window || (fullscreen_window && !fullscreen_window->is_opaque())) { + } else { Gfx::DisjointRectSet visible_rects; visible_rects.add_many(Screen::rects()); bool have_transparent = false; |