1de9648a89
Summary: The Show Paint effect is useful when debugging repaint regions issued by effects. The only headache with it is necessity to enable/disable it. Consider the following workflow: * Do some change to an effect; * Compile KWin (or the effect); * Go to System Settings and enable the Show Paint effect; * Test effect, check repaint regions, etc; * Disable the Show Paint effect; * Go to the step 1. This workflow is really exhausting. Also, when testing repaints in a nested compositor, things become quite messy. Because purpose of this effect is to debug repaints (and because this effect is not meant for daily usage), I think that's fine to change how it's activated. This patch improves the workflow by changing the way how this effect gets activated. Instead of enabling/disabling it, one can just use a shortcut to activate or deactivate the effect. Reviewers: #kwin, davidedmundson Reviewed By: #kwin, davidedmundson Subscribers: broulik, davidedmundson, kwin Tags: #kwin Differential Revision: https://phabricator.kde.org/D15703
25 lines
606 B
CMake
25 lines
606 B
CMake
#######################################
|
|
|
|
# Config
|
|
set(kwin_showpaint_config_SRCS showpaint_config.cpp)
|
|
ki18n_wrap_ui(kwin_showpaint_config_SRCS showpaint_config.ui)
|
|
|
|
add_library(kwin_showpaint_config MODULE ${kwin_showpaint_config_SRCS})
|
|
|
|
target_link_libraries(kwin_showpaint_config
|
|
KF5::ConfigWidgets
|
|
KF5::GlobalAccel
|
|
KF5::I18n
|
|
KF5::Service
|
|
KF5::XmlGui
|
|
)
|
|
|
|
kcoreaddons_desktop_to_json(kwin_showpaint_config showpaint_config.desktop SERVICE_TYPES kcmodule.desktop)
|
|
|
|
install(
|
|
TARGETS
|
|
kwin_showpaint_config
|
|
|
|
DESTINATION
|
|
${PLUGIN_INSTALL_DIR}/kwin/effects/configs
|
|
)
|