diff options
author | Michele Calgaro <[email protected]> | 2024-08-02 13:45:09 +0900 |
---|---|---|
committer | Michele Calgaro <[email protected]> | 2024-08-04 19:00:54 +0900 |
commit | 72fce97c2e965335bbd53ebe0af86386d0524204 (patch) | |
tree | 65f5425ccec9ba9930aac2ae7b41e09d6942b74f /kicker/taskmanager/taskmanager.cpp | |
parent | 673e48af907a279dc2d651b8f4954ea556a94182 (diff) | |
download | tdebase-72fce97c2e965335bbd53ebe0af86386d0524204.tar.gz tdebase-72fce97c2e965335bbd53ebe0af86386d0524204.zip |
Add support for window tiling to the taskbar and window's popup menus. This relates to TDE/tdebase#349.
Signed-off-by: Michele Calgaro <[email protected]>
(cherry picked from commit 4cd5817775a7e3618081bfed788f361307cfef41)
Diffstat (limited to 'kicker/taskmanager/taskmanager.cpp')
-rw-r--r-- | kicker/taskmanager/taskmanager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/kicker/taskmanager/taskmanager.cpp b/kicker/taskmanager/taskmanager.cpp index 54bf6d919..43cd3c7e9 100644 --- a/kicker/taskmanager/taskmanager.cpp +++ b/kicker/taskmanager/taskmanager.cpp @@ -26,6 +26,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include <tqimage.h> #include <tqtimer.h> +#include <tdeapplication.h> #include <tdeconfig.h> #include <kdebug.h> #include <tdeglobal.h> @@ -36,6 +37,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. #include <twinmodule.h> #include <kxerrorhandler.h> #include <netwm.h> +#include "dcopclient.h" #include "taskmanager.h" #include "taskmanager.moc" @@ -1452,6 +1454,14 @@ void Task::updateWindowPixmap() #endif // THUMBNAILING_POSSIBLE } +void Task::tileTo(int position) +{ + TQByteArray params; + TQDataStream stream(params, IO_WriteOnly); + stream << _win << position; + TDEApplication::kApplication()->dcopClient()->send("twin", "KWinInterface", "tileWindowToBorder(unsigned long int, int)", params); +} + Startup::Startup(const TDEStartupInfoId& id, const TDEStartupInfoData& data, TQObject * parent, const char *name) : TQObject(parent, name), _id(id), _data(data) |