Back to index

unity  6.0.0
Public Member Functions | Protected Attributes
X11WindowReadTransients Class Reference

#include <x11-window-read-transients.h>

Inheritance diagram for X11WindowReadTransients:
Inheritance graph
[legend]
Collaboration diagram for X11WindowReadTransients:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 X11WindowReadTransients (Display *, Window id=0)
virtual ~X11WindowReadTransients ()
void makeTransientFor (X11WindowReadTransients *w)
void setClientLeader (X11WindowReadTransients *w)
void printTransients ()
std::vector< unsigned int > transients ()
unsigned int id ()

Protected Attributes

Window mXid
Display * mDpy
bool mCreated

Detailed Description

Definition at line 34 of file x11-window-read-transients.h.


Constructor & Destructor Documentation

X11WindowReadTransients::X11WindowReadTransients ( Display *  d,
Window  id = 0 
)

Definition at line 28 of file x11-window-read-transients.cpp.

                                                                      :
    X11Window::X11Window (d, w)
{
}

Definition at line 33 of file x11-window-read-transients.cpp.

{
}

Member Function Documentation

unsigned int X11WindowReadTransients::id ( ) [inline]

Reimplemented from X11Window.

Reimplemented in X11WindowFakeMinimizable.

Definition at line 48 of file x11-window-read-transients.h.

{ return mXid; }

Here is the caller graph for this function:

Definition at line 38 of file x11-window-read-transients.cpp.

{
  XSetTransientForHint (mDpy, mXid, w->id ());
  XSync (mDpy, false);
}

Here is the call graph for this function:

Definition at line 72 of file x11-window-read-transients.cpp.

{
  for (unsigned int &w : transients ())
    printf ("window id 0x%x\n", w);
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 45 of file x11-window-read-transients.cpp.

{
  Atom wmClientLeader = XInternAtom (mDpy, "WM_CLIENT_LEADER", 0);
  Atom netWmWindowType = XInternAtom (mDpy, "_NET_WM_WINDOW_TYPE", 0);
  Atom netWmWindowTypeDialog = XInternAtom (mDpy, "_NET_WM_WINDOW_TYPE_DIALOG", 0);

  Window cl = w->id ();

  XChangeProperty (mDpy, mXid, wmClientLeader, XA_WINDOW, 32,
                   PropModeReplace, (unsigned char *) &cl, 1);
  XChangeProperty (mDpy, mXid, netWmWindowType, XA_ATOM, 32,
                   PropModeAppend, (const unsigned char *) &netWmWindowTypeDialog, 1);

  XSync (mDpy, false);
}

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< unsigned int > X11WindowReadTransients::transients ( )

Reimplemented from X11Window.

Definition at line 62 of file x11-window-read-transients.cpp.

{
  compiz::X11TransientForReader *reader = new compiz::X11TransientForReader (mDpy, mXid);
  std::vector<unsigned int> transients = reader->getTransients ();

  delete reader;
  return transients;
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

bool X11Window::mCreated [protected, inherited]

Definition at line 46 of file x11-window.h.

Display* X11Window::mDpy [protected, inherited]

Definition at line 45 of file x11-window.h.

Window X11Window::mXid [protected, inherited]

Definition at line 44 of file x11-window.h.


The documentation for this class was generated from the following files: