Adjust kde-workspace to changes in NETWMClient
ctor changed to take NET::Properties and NET::Properties2.
This commit is contained in:
parent
f74df28450
commit
b0c0e81661
6 changed files with 10 additions and 18 deletions
|
@ -2258,8 +2258,7 @@ void Client::updateCursor()
|
|||
void Client::updateCompositeBlocking(bool readProperty)
|
||||
{
|
||||
if (readProperty) {
|
||||
const unsigned long properties[2] = {0, NET::WM2BlockCompositing};
|
||||
NETWinInfo i(connection(), window(), rootWindow(), properties, 2);
|
||||
NETWinInfo i(connection(), window(), rootWindow(), 0, NET::WM2BlockCompositing);
|
||||
setBlockingCompositing(i.isBlockingCompositing());
|
||||
}
|
||||
else
|
||||
|
|
|
@ -204,9 +204,8 @@ Group::Group(Window leader_P)
|
|||
{
|
||||
if (leader_P != None) {
|
||||
leader_client = workspace()->findClient(WindowMatchPredicate(leader_P));
|
||||
unsigned long properties[ 2 ] = { 0, NET::WM2StartupId };
|
||||
leader_info = new NETWinInfo(connection(), leader_P, rootWindow(),
|
||||
properties, 2);
|
||||
0, NET::WM2StartupId);
|
||||
}
|
||||
effect_group = new EffectWindowGroupImpl(this);
|
||||
workspace()->addGroup(this);
|
||||
|
|
|
@ -80,8 +80,7 @@ bool Client::manage(xcb_window_t w, bool isMapped)
|
|||
if (isMapped)
|
||||
init_minimize = false; // If it's already mapped, ignore hint
|
||||
|
||||
unsigned long properties[2];
|
||||
properties[WinInfo::PROTOCOLS] =
|
||||
const NET::Properties properties =
|
||||
NET::WMDesktop |
|
||||
NET::WMState |
|
||||
NET::WMWindowType |
|
||||
|
@ -91,7 +90,7 @@ bool Client::manage(xcb_window_t w, bool isMapped)
|
|||
NET::WMIcon |
|
||||
NET::WMPid |
|
||||
NET::WMIconName;
|
||||
properties[WinInfo::PROTOCOLS2] =
|
||||
const NET::Properties2 properties2 =
|
||||
NET::WM2UserTime |
|
||||
NET::WM2StartupId |
|
||||
NET::WM2ExtendedStrut |
|
||||
|
@ -99,7 +98,7 @@ bool Client::manage(xcb_window_t w, bool isMapped)
|
|||
NET::WM2FullscreenMonitors |
|
||||
NET::WM2FrameOverlap;
|
||||
|
||||
info = new WinInfo(this, m_client, rootWindow(), properties, 2);
|
||||
info = new WinInfo(this, m_client, rootWindow(), properties, properties2);
|
||||
|
||||
m_colormap = attr.colormap;
|
||||
|
||||
|
|
|
@ -246,8 +246,8 @@ void RootInfo::changeShowingDesktop(bool showing)
|
|||
// ****************************************
|
||||
|
||||
WinInfo::WinInfo(Client * c, xcb_window_t window,
|
||||
xcb_window_t rwin, const unsigned long pr[], int pr_size)
|
||||
: NETWinInfo(connection(), window, rwin, pr, pr_size, NET::WindowManager), m_client(c)
|
||||
xcb_window_t rwin, NET::Properties properties, NET::Properties2 properties2)
|
||||
: NETWinInfo(connection(), window, rwin, properties, properties2, NET::WindowManager), m_client(c)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ private:
|
|||
|
||||
public:
|
||||
WinInfo(Client* c, xcb_window_t window,
|
||||
xcb_window_t rwin, const unsigned long pr[], int pr_size);
|
||||
xcb_window_t rwin, NET::Properties properties, NET::Properties2 properties2);
|
||||
virtual void changeDesktop(int desktop) override;
|
||||
virtual void changeFullscreenMonitors(NETFullscreenMonitors topology) override;
|
||||
virtual void changeState(NET::States state, NET::States mask) override;
|
||||
|
|
|
@ -63,13 +63,8 @@ bool Unmanaged::track(Window w)
|
|||
checkScreen();
|
||||
vis = attr.visual;
|
||||
bit_depth = attr.depth;
|
||||
unsigned long properties[ 2 ];
|
||||
properties[ NETWinInfo::PROTOCOLS ] =
|
||||
NET::WMWindowType |
|
||||
NET::WMPid;
|
||||
properties[ NETWinInfo::PROTOCOLS2 ] =
|
||||
NET::WM2Opacity;
|
||||
info = new NETWinInfo(connection(), w, rootWindow(), properties, 2);
|
||||
info = new NETWinInfo(connection(), w, rootWindow(),
|
||||
NET::WMWindowType | NET::WMPid, NET::WM2Opacity);
|
||||
getResourceClass();
|
||||
getWindowRole();
|
||||
getWmClientLeader();
|
||||
|
|
Loading…
Reference in a new issue