~ubuntu-branches/ubuntu/oneiric/unity/oneiric

« back to all changes in this revision

Viewing changes to .pc/debian-changes-4.14.2-0ubuntu2/plugins/unityshell/src/inputremover.h

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2011-09-12 08:12:54 UTC
  • Revision ID: package-import@ubuntu.com-20110912081254-qtz600pc32fva88o
Tags: 4.14.2-0ubuntu2
* Cherry-pick a fix for remapping minimized window correctly (LP: #840285)
* debian/control:
  - bump build-dep for latest compiz-dev ABI break

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2011 Canonical Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU General Public License as published by
 
6
 * the Free Software Foundation; either version 2 of the License, or
 
7
 * (at your option) any later version.
 
8
 *
 
9
 * This program is distributed in the hope that it will be useful,
 
10
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
11
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
12
 * GNU General Public License for more details.
 
13
 *
 
14
 * You should have received a copy of the GNU General Public License
 
15
 * along with this program; if not, write to the Free Software
 
16
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
17
 *
 
18
 * Authored By:
 
19
 * Sam Spilsbury <sam.spilsbury@canonical.com>
 
20
 */
 
21
 
 
22
#ifndef _COMPIZ_INPUTREMOVER_H
 
23
#define _COMPIZ_INPUTREMOVER_H
 
24
 
 
25
#include <X11/Xlib.h>
 
26
#include <X11/Xatom.h>
 
27
#include <X11/extensions/shape.h>
 
28
 
 
29
// Will be merged back into compiz
 
30
namespace compiz {
 
31
 
 
32
class WindowInputRemover
 
33
{
 
34
public:
 
35
 
 
36
  WindowInputRemover (Display *, Window xid);
 
37
  ~WindowInputRemover ();
 
38
 
 
39
  bool save ();
 
40
  bool remove ();
 
41
  bool restore ();
 
42
 
 
43
private:
 
44
  Display       *mDpy;
 
45
  Window        mShapeWindow;
 
46
  unsigned long mShapeMask;
 
47
 
 
48
  XRectangle    *mInputRects;
 
49
  int           mNInputRects;
 
50
  int           mInputRectOrdering;
 
51
 
 
52
  XRectangle    *mBoundingRects;
 
53
  int           mNBoundingRects;
 
54
  int           mBoundingRectOrdering;
 
55
  bool    mRemoved;
 
56
 
 
57
};
 
58
}
 
59
 
 
60
#endif