aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-05-19 22:38:55 (GMT)
committerfluxgen <fluxgen>2003-05-19 22:38:55 (GMT)
commit3027bf1341cf3ac82889846ceeb1e9cf7f955502 (patch)
tree4e8a6307e9935d505ee2dcfb772b40b55c32ae58 /src/FbTk/FbWindow.cc
parent52a71aa781c861ee0d604a546630ce5a57ec1ad4 (diff)
downloadfluxbox-3027bf1341cf3ac82889846ceeb1e9cf7f955502.zip
fluxbox-3027bf1341cf3ac82889846ceeb1e9cf7f955502.tar.bz2
property and changeProperty
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r--src/FbTk/FbWindow.cc33
1 files changed, 32 insertions, 1 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index ed97ecc..722b414 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -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: FbWindow.cc,v 1.19 2003/05/19 08:27:49 rathnor Exp $ 22// $Id: FbWindow.cc,v 1.20 2003/05/19 22:38:55 fluxgen Exp $
23 23
24#include "FbWindow.hh" 24#include "FbWindow.hh"
25#include "EventManager.hh" 25#include "EventManager.hh"
@@ -188,6 +188,37 @@ void FbWindow::unsetCursor() {
188 XUndefineCursor(s_display, window()); 188 XUndefineCursor(s_display, window());
189} 189}
190 190
191
192bool FbWindow::property(Atom property,
193 long long_offset, long long_length,
194 bool do_delete,
195 Atom req_type,
196 Atom *actual_type_return,
197 int *actual_format_return,
198 unsigned long *nitems_return,
199 unsigned long *bytes_after_return,
200 unsigned char **prop_return) const {
201 if (XGetWindowProperty(s_display, window(),
202 property, long_offset, long_length, do_delete,
203 req_type, actual_type_return,
204 actual_format_return, nitems_return,
205 bytes_after_return, prop_return) == Success)
206 return true;
207
208 return false;
209}
210
211void FbWindow::changeProperty(Atom property, Atom type,
212 int format,
213 int mode,
214 unsigned char *data,
215 int nelements) {
216
217 XChangeProperty(s_display, m_window, property, type,
218 format, mode,
219 data, nelements);
220}
221
191int FbWindow::screenNumber() const { 222int FbWindow::screenNumber() const {
192 return m_screen_num; 223 return m_screen_num;
193} 224}