aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/FbWindow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/FbWindow.cc')
-rw-r--r--src/FbTk/FbWindow.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/FbTk/FbWindow.cc b/src/FbTk/FbWindow.cc
index 8362733..257447f 100644
--- a/src/FbTk/FbWindow.cc
+++ b/src/FbTk/FbWindow.cc
@@ -265,6 +265,13 @@ void FbWindow::setName(const char *name) {
265 XStoreName(display(), m_window, name); 265 XStoreName(display(), m_window, name);
266} 266}
267 267
268void FbWindow::setWindowRole(const char *windowRole) {
269 XTextProperty tp;
270 XStringListToTextProperty(const_cast<char **>(&windowRole), 1, &tp);
271 XSetTextProperty(display(), m_window, &tp, XInternAtom(display(), "WM_WINDOW_ROLE", False));
272 XFree(tp.value);
273}
274
268void FbWindow::setEventMask(long mask) { 275void FbWindow::setEventMask(long mask) {
269 XSelectInput(display(), m_window, mask); 276 XSelectInput(display(), m_window, mask);
270} 277}