aboutsummaryrefslogtreecommitdiff
path: root/src/WinClient.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/WinClient.hh')
-rw-r--r--src/WinClient.hh16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/WinClient.hh b/src/WinClient.hh
index 6cd14dd..466f456 100644
--- a/src/WinClient.hh
+++ b/src/WinClient.hh
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: WinClient.hh,v 1.2 2003/04/14 12:08:21 fluxgen Exp $ 22// $Id: WinClient.hh,v 1.3 2003/05/07 16:21:26 rathnor Exp $
23 23
24#ifndef WINCLIENT_HH 24#ifndef WINCLIENT_HH
25#define WINCLIENT_HH 25#define WINCLIENT_HH
@@ -36,7 +36,7 @@ class FluxboxWindow;
36/// Holds client window info 36/// Holds client window info
37class WinClient:public FbTk::FbWindow { 37class WinClient:public FbTk::FbWindow {
38public: 38public:
39 typedef std::list<FluxboxWindow *> TransientList; 39 typedef std::list<WinClient *> TransientList;
40 40
41 WinClient(Window win, FluxboxWindow &fbwin); 41 WinClient(Window win, FluxboxWindow &fbwin);
42 42
@@ -56,10 +56,13 @@ public:
56 56
57 /// updates transient window information 57 /// updates transient window information
58 void updateTransientInfo(); 58 void updateTransientInfo();
59 FluxboxWindow *transientFor() { return transient_for; } 59 WinClient *transientFor() { return transient_for; }
60 const FluxboxWindow *transientFor() const { return transient_for; } 60 const WinClient *transientFor() const { return transient_for; }
61 TransientList &transientList() { return transients; } 61 TransientList &transientList() { return transients; }
62 const TransientList &transientList() const { return transients; } 62 const TransientList &transientList() const { return transients; }
63 bool isTransient() const { return transient_for != 0; }
64 bool isModal() const { return modal; }
65
63 bool operator == (const FluxboxWindow &win) const { 66 bool operator == (const FluxboxWindow &win) const {
64 return (m_win == &win); 67 return (m_win == &win);
65 } 68 }
@@ -73,8 +76,8 @@ public:
73 remove or move these to private 76 remove or move these to private
74 */ 77 */
75 78
76 FluxboxWindow *transient_for; // which window are we a transient for? 79 WinClient *transient_for; // which window are we a transient for?
77 std::list<FluxboxWindow *> transients; // which windows are our transients? 80 std::list<WinClient *> transients; // which windows are our transients?
78 Window window_group; 81 Window window_group;
79 82
80 83
@@ -105,6 +108,7 @@ public:
105 }; 108 };
106 109
107private: 110private:
111 bool modal;
108 std::string m_title, m_icon_title; 112 std::string m_title, m_icon_title;
109 WinClientSubj m_diesig; 113 WinClientSubj m_diesig;
110}; 114};