psifidotos / applet-window-appmenu

Plasma 5 applet in order to show the window appmenu
GNU General Public License v2.0
419 stars 33 forks source link

Application's title bar buttons do not hide when the window is maximized #219

Open ziadloo opened 1 year ago

ziadloo commented 1 year ago

TBH, I'm not sure if this is a feature of this widget or not but I'm guessing this widget is supposed to show the buttons in the appmenu and at the same time, hide them from the owner application.

While it does add the buttons for me, but it does not hide the original title bar:

image

And this is the output of the installation script:

❯ ./install.sh
CMake Warning (dev) at /usr/share/ECM/modules/ECMFindModuleHelpers.cmake:113 (message):
  Your project should require at least CMake 3.16.0 to use FindKF5.cmake
Call Stack (most recent call first):
  /usr/share/ECM/find-modules/FindKF5.cmake:30 (ecm_find_package_version_check)
  CMakeLists.txt:19 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Warning (dev) at /usr/share/ECM/modules/ECMFindModuleHelpers.cmake:113 (message):
  Your project should require at least CMake 3.16.0 to use FindXCB.cmake
Call Stack (most recent call first):
  /usr/share/ECM/find-modules/FindXCB.cmake:67 (ecm_find_package_version_check)
  CMakeLists.txt:35 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found XCB: /usr/lib/libxcb.so;/usr/lib/libxcb-randr.so (found version "1.15") found components: XCB RANDR 
-- KF5 VERSION : 5.103.0
-- KF5 VERSION CURRENT MINOR : 103
-- LibTaskManager VERSION : 5.26.5
-- LibTaskManager CURRENT VERSION : 26
CMake Warning (dev) at /usr/share/ECM/modules/ECMFindModuleHelpers.cmake:113 (message):
  Your project should require at least CMake 3.16.0 to use FindXCB.cmake
Call Stack (most recent call first):
  /usr/share/ECM/find-modules/FindXCB.cmake:67 (ecm_find_package_version_check)
  plugin/CMakeLists.txt:30 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Found XCB: /usr/lib/libxcb.so;/usr/lib/libxcb-randr.so (found version "1.15") found components: XCB 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mehran/Downloads/applet-window-appmenu/build
[  9%] Automatic MOC for target appmenutest
[  9%] Automatic MOC for target dbusmenuqt
[  9%] Automatic MOC for target plasma_applet_windowappmenu
[  9%] Built target appmenutest_autogen
[  9%] Built target dbusmenuqt_autogen
[ 12%] Built target plasma_applet_windowappmenu_autogen
[ 21%] Built target appmenutest
[ 34%] Built target plasma_applet_windowappmenu
[ 65%] Built target dbusmenuqt
[ 68%] Automatic MOC for target appmenuplugin
[ 68%] Built target appmenuplugin_autogen
[100%] Built target appmenuplugin
[sudo] password for mehran: 
[  3%] Automatic MOC for target plasma_applet_windowappmenu
[  6%] Built target plasma_applet_windowappmenu_autogen
[ 18%] Built target plasma_applet_windowappmenu
[ 21%] Automatic MOC for target dbusmenuqt
[ 21%] Built target dbusmenuqt_autogen
[ 53%] Built target dbusmenuqt
[ 56%] Automatic MOC for target appmenuplugin
[ 56%] Built target appmenuplugin_autogen
[ 87%] Built target appmenuplugin
[ 90%] Automatic MOC for target appmenutest
[ 90%] Built target appmenutest_autogen
[100%] Built target appmenutest
Install the project...
-- Install configuration: "Release"
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/metadata.desktop
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/MenuFlickable.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/main.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/FlickableIndicators.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/PaintedToolButton.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/CustomLabel.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/config
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/config/ColorsComboBox.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/config/ConfigGeneral.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/LatteWindowsTracker.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/PlasmaTasksModel.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/ui/Broadcaster.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/config
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/config/config.qml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/config/main.xml
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/code
-- Up-to-date: /usr/share/plasma/plasmoids/org.kde.windowappmenu/contents/code/util.js
-- Installing: /usr/share/metainfo/org.kde.windowappmenu.appdata.xml
-- Up-to-date: /usr/share/kservices5/plasma-applet-org.kde.windowappmenu.desktop
-- Up-to-date: /usr/lib/qt/plugins/plasma/applets/plasma_applet_windowappmenu.so
-- Up-to-date: /usr/lib/qt/qml/org/kde/private/windowAppMenu/libappmenuplugin.so
-- Up-to-date: /usr/lib/qt/qml/org/kde/private/windowAppMenu/qmldir

BTW, I'm installing it on Manjaro.

Thanks. It's a really cool widget.

strebogor commented 1 year ago
  1. Install CMake version 3.16.0 and higher
sudo <pkg-manager> <install-command> <cmake or cmake-gui>
  1. Specify the minimum version of CMake in the CMakeLists.txt file of your project. To do this, add the following line in front of the project : command
cmake_minimum_required (VERSION 3.16.0)
  1. Update packages and restart script.

If a warning still appears, then you can add the -Wno-dev flag to the CMake settings file. To do this, add the following line to the settings file of your project:

set (CMAKE_CXX_FLAGS "$ {CMAKE_CXX_FLAGS} -Wno-dev")