blob: 309df0d860f6981ea6bcfd01f7c0ade008da0e06 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/** Copyright 2011-2013 Thorsten Wißmann. All rights reserved.
*
* This software is licensed under the "Simplified BSD License".
* See LICENSE for details */
#ifndef __HERBSTLUFT_DESKTOPWINDOW_H_
#define __HERBSTLUFT_DESKTOPWINDOW_H_
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xatom.h>
#include <vector>
#include <memory>
/* container for unmanaged windows like
* - desktop windows
* - panels
*/
class DesktopWindow {
public:
DesktopWindow(Window win, bool ifBelow);
bool below() const;
Window window() const;
static void registerDesktop(Window win);
static void lowerDesktopWindows();
static void unregisterDesktop(Window win);
private:
// members:
Window win;
bool m_below;
static std::vector<std::shared_ptr<DesktopWindow>> windows;
};
#endif
|