[DTK] deepin系统中,C++怎么获取指定窗口,并置顶
Tofloor
poster avatar
mengqx2021
deepin
2022-05-09 23:07
Author

大佬们,请问下,我要怎么用C++代码实现deepin系统中指定窗口置顶的功能,在Win下可以使用如下代码实现:

::SetWindowPos(hwnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW)

Reply Favorite View the author
All Replies
心平气和
deepin
2022-05-10 00:36
#1
Reply View the author
柚子
deepin
2022-05-11 16:26
#2

先获取指定窗口的winid,然后通过kwin提供的接口置顶

Reply View the author