summaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbWindow.hh')
-rw-r--r--src/FbTk/FbWindow.hh7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/FbTk/FbWindow.hh b/src/FbTk/FbWindow.hh
index 863c2df..f266ec3 100644
--- a/src/FbTk/FbWindow.hh
+++ b/src/FbTk/FbWindow.hh
@@ -108,7 +108,7 @@ public:
108 virtual void move(int x, int y) { 108 virtual void move(int x, int y) {
109 if (x == m_x && y == m_y) 109 if (x == m_x && y == m_y)
110 return; 110 return;
111 XMoveWindow(s_display, m_window, x, y); 111 XMoveWindow(display(), m_window, x, y);
112 m_x = x; 112 m_x = x;
113 m_y = y; 113 m_y = y;
114 updateBackground(true); 114 updateBackground(true);
@@ -117,7 +117,7 @@ public:
117 virtual void resize(unsigned int width, unsigned int height) { 117 virtual void resize(unsigned int width, unsigned int height) {
118 if (width == m_width && height == m_height) 118 if (width == m_width && height == m_height)
119 return; 119 return;
120 XResizeWindow(s_display, m_window, width, height); 120 XResizeWindow(display(), m_window, width, height);
121 m_width = width; 121 m_width = width;
122 m_height = height; 122 m_height = height;
123 updateBackground(false); 123 updateBackground(false);
@@ -126,7 +126,7 @@ public:
126 virtual void moveResize(int x, int y, unsigned int width, unsigned int height) { 126 virtual void moveResize(int x, int y, unsigned int width, unsigned int height) {
127 if (x == m_x && y == m_y && width == m_width && height == m_height) 127 if (x == m_x && y == m_y && width == m_width && height == m_height)
128 return; 128 return;
129 XMoveResizeWindow(s_display, m_window, x, y, width, height); 129 XMoveResizeWindow(display(), m_window, x, y, width, height);
130 m_x = x; 130 m_x = x;
131 m_y = y; 131 m_y = y;
132 m_width = width; 132 m_width = width;
@@ -183,7 +183,6 @@ public:
183 unsigned char alpha() const; 183 unsigned char alpha() const;
184 int screenNumber() const; 184 int screenNumber() const;
185 long eventMask() const; 185 long eventMask() const;
186 Display *display() const { return s_display; }
187 186
188 /// compare X window 187 /// compare X window
189 bool operator == (Window win) const { return m_window == win; } 188 bool operator == (Window win) const { return m_window == win; }