Back to index

unity  6.0.0
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes
X11WindowFakeMinimizable Class Reference
Inheritance diagram for X11WindowFakeMinimizable:
Inheritance graph
[legend]
Collaboration diagram for X11WindowFakeMinimizable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 X11WindowFakeMinimizable (Display *, Window id=0)
 ~X11WindowFakeMinimizable ()
unsigned int id ()
bool minimized ()
void minimize ()
void unminimize ()
void makeTransientFor (X11WindowReadTransients *w)
void setClientLeader (X11WindowReadTransients *w)
void printTransients ()
std::vector< unsigned int > transients ()
WindowInputRemoverLock::Ptr InputRemover ()

Protected Attributes

Window mXid
Display * mDpy
bool mCreated

Private Member Functions

compiz::WindowInputRemoverLock::Ptr GetInputRemover ()

Private Attributes

compiz::WindowInputRemoverLock::Weak input_remover_
compiz::MinimizedWindowHandler::Ptr mMinimizedHandler

Detailed Description

Definition at line 37 of file test-minimize-handler.cpp.


Constructor & Destructor Documentation

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

Definition at line 71 of file test-minimize-handler.cpp.

                                                                         :
  X11WindowReadTransients (d, id)
{
}

Definition at line 76 of file test-minimize-handler.cpp.

{
}

Member Function Documentation

unsigned int X11WindowFakeMinimizable::id ( ) [inline]

Reimplemented from X11WindowReadTransients.

Definition at line 46 of file test-minimize-handler.cpp.

{ return mXid; }
WindowInputRemoverLock::Ptr compiz::WindowInputRemoverLockAcquireInterface::InputRemover ( ) [inline, inherited]

Definition at line 122 of file inputremover.h.

{ return GetInputRemover (); }

Here is the call graph for this function:

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 87 of file test-minimize-handler.cpp.

{
  if (!mMinimizedHandler)
  {
    printf ("Fake minimize window 0x%x\n", (unsigned int) mXid);
    mMinimizedHandler = compiz::MinimizedWindowHandler::Ptr (new compiz::MinimizedWindowHandler (mDpy, mXid, this));
    mMinimizedHandler->minimize ();
  }
}

Here is the caller graph for this function:

Definition at line 81 of file test-minimize-handler.cpp.

{
  return mMinimizedHandler.get () != NULL;
}

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 ( ) [inherited]

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:

Definition at line 98 of file test-minimize-handler.cpp.

{
  if (mMinimizedHandler)
  {
    printf ("Fake unminimize window 0x%x\n", (unsigned int) mXid);
    mMinimizedHandler->unminimize ();
    mMinimizedHandler.reset ();
  }
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 56 of file test-minimize-handler.cpp.

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.

Definition at line 57 of file test-minimize-handler.cpp.

Window X11Window::mXid [protected, inherited]

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


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