aboutsummaryrefslogtreecommitdiff
path: root/src/Window.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2014-09-29 07:24:42 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2014-09-29 07:26:52 (GMT)
commitc5fd69cc9de2ed08176d655c1e46e9305c5543df (patch)
tree38625686b10509f575782ddce3a70667ef3cf924 /src/Window.cc
parented7bcc5dbcbd2d3e4dddb4c57219ef6beda240e6 (diff)
downloadfluxbox-c5fd69cc9de2ed08176d655c1e46e9305c5543df.zip
fluxbox-c5fd69cc9de2ed08176d655c1e46e9305c5543df.tar.bz2
treat windows having WM_CLASS == "DockApp" like DockApps
this commit implements feature-request #317: "Add support for GTK dockapps.": "Back in 2010, WindowMaker implemented a system where windows with WM_CLASS res_class = DockApp would be treated as if they had initial_state = WithdrawnState, since GTK refuses to allow this."
Diffstat (limited to 'src/Window.cc')
-rw-r--r--src/Window.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/Window.cc b/src/Window.cc
index b44fd1d..2b997a7 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -389,8 +389,10 @@ void FluxboxWindow::init() {
389 if (! m_client->getAttrib(wattrib) || 389 if (! m_client->getAttrib(wattrib) ||
390 !wattrib.screen || // no screen? ?? 390 !wattrib.screen || // no screen? ??
391 wattrib.override_redirect || // override redirect 391 wattrib.override_redirect || // override redirect
392 m_client->initial_state == WithdrawnState) // Slit client 392 m_client->initial_state == WithdrawnState ||
393 m_client->getWMClassClass() == "DockApp") { // Slit client
393 return; 394 return;
395 }
394 396
395 if (m_client->initial_state == IconicState) 397 if (m_client->initial_state == IconicState)
396 m_state.iconic = true; 398 m_state.iconic = true;
@@ -399,6 +401,7 @@ void FluxboxWindow::init() {
399 m_client->setGroupLeftWindow(None); // nothing to the left. 401 m_client->setGroupLeftWindow(None); // nothing to the left.
400 402
401 if (Fluxbox::instance()->haveShape()) 403 if (Fluxbox::instance()->haveShape())
404
402 Shape::setShapeNotify(winClient()); 405 Shape::setShapeNotify(winClient());
403 406
404 //!! TODO init of client should be better 407 //!! TODO init of client should be better