summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoronestone <onestone>2006-10-31 16:44:07 +0000
committeronestone <onestone>2006-10-31 16:44:07 +0000
commit2a8c3a56a4af23fa3d794f573aa51c2a5e305f5c (patch)
tree94caa2833b0dbb4d8a7a05a2b73ace52687fbc39
parent8fe64cafed0113ca7dc4d75f016c893e1f2ddc15 (diff)
downloadaquamarine-2a8c3a56a4af23fa3d794f573aa51c2a5e305f5c.tar.gz
aquamarine-2a8c3a56a4af23fa3d794f573aa51c2a5e305f5c.tar.bz2
aquamarine: fixed setting of mask on window creation
-rw-r--r--src/window.cpp17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 2b731c5..7a9c392 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -599,11 +599,20 @@ Aquamarine::Window::setMask (const QRegion & reg, int)
bottom,
left,
right;
- m_deco->borders (left, right, top, bottom);
- m_clip =
- QRegion (0, 0, m_geometry.width () + left + right,
- m_geometry.height () + top + bottom);
+ if (m_deco)
+ {
+ m_deco->borders (left, right, top, bottom);
+
+ m_clip =
+ QRegion (0, 0, m_geometry.width () + left + right,
+ m_geometry.height () + top + bottom);
+ }
+ else
+ {
+ m_clip = QRedion (reg.boundingRect ());
+ }
+
m_clip -= QRegion (left, top, m_geometry.width (), m_geometry.height ());
m_clip -= reg;