aboutsummaryrefslogtreecommitdiff
path: root/src/FbPager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbPager.cc')
-rw-r--r--src/FbPager.cc23
1 files changed, 2 insertions, 21 deletions
diff --git a/src/FbPager.cc b/src/FbPager.cc
index bf55eb4..3955200 100644
--- a/src/FbPager.cc
+++ b/src/FbPager.cc
@@ -31,11 +31,9 @@
31 31
32// client handlers 32// client handlers
33#include "Ewmh.hh" 33#include "Ewmh.hh"
34#include "FluxboxHandler.hh"
35 34
36#include "Workspace.hh" 35#include "Workspace.hh"
37#include "WindowHint.hh" 36#include "WindowHint.hh"
38#include "FbAtoms.hh"
39#include "ScaleWindowToWindow.hh" 37#include "ScaleWindowToWindow.hh"
40#include "Resources.hh" 38#include "Resources.hh"
41#include "RefBinder.hh" 39#include "RefBinder.hh"
@@ -119,8 +117,6 @@ namespace FbPager {
119 117
120 118
121FbPager::FbPager(int screen_num, bool withdraw, 119FbPager::FbPager(int screen_num, bool withdraw,
122 bool use_fbhandler,
123 bool use_ewmhhandler,
124 bool show_resources, 120 bool show_resources,
125 int layer_flag, 121 int layer_flag,
126 const char *resource_filename): 122 const char *resource_filename):
@@ -236,12 +232,7 @@ FbPager::FbPager(int screen_num, bool withdraw,
236 "FbPager.Border.Inactive.Color"), 232 "FbPager.Border.Inactive.Color"),
237 m_last_workspace_num(-1) { 233 m_last_workspace_num(-1) {
238 234
239 235 m_clienthandlers.push_back(new Ewmh());
240 if (use_fbhandler)
241 m_clienthandlers.push_back(new FluxboxHandler());
242
243 if (use_ewmhhandler)
244 m_clienthandlers.push_back(new Ewmh());
245 236
246 XSetErrorHandler(handleXErrors); 237 XSetErrorHandler(handleXErrors);
247 238
@@ -253,17 +244,6 @@ FbPager::FbPager(int screen_num, bool withdraw,
253 m_window.setAlpha(*m_alpha); 244 m_window.setAlpha(*m_alpha);
254 245
255 246
256 Display *disp = FbTk::App::instance()->display();
257 Atom wmproto[2];
258 int wmprot_size = 1;
259 wmproto[0] = XInternAtom(disp, "WM_DELETE_WINDOW", False);
260 if (FluxboxHandler::handler() != 0) {
261 wmprot_size = 2;
262 wmproto[1] = FbAtoms::instance()->getFluxboxStructureMessagesAtom();
263 }
264 XSetWMProtocols(disp, m_window.window(), wmproto, wmprot_size);
265
266
267 XWMHints wmhints; 247 XWMHints wmhints;
268 248
269 if (!withdraw) { 249 if (!withdraw) {
@@ -286,6 +266,7 @@ FbPager::FbPager(int screen_num, bool withdraw,
286 XStringListToTextProperty(&name_prop, 1, &windowname); 266 XStringListToTextProperty(&name_prop, 1, &windowname);
287 267
288 // setup class hints 268 // setup class hints
269 Display *disp = FbTk::App::instance()->display();
289 XClassHint classhints; 270 XClassHint classhints;
290 string res_name = "fbpager"; 271 string res_name = "fbpager";
291 string res_class = "FbPager"; 272 string res_class = "FbPager";