summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2002-05-26 20:51:33 +0000
committerDana Jansens <danakj@orodu.net>2002-05-26 20:51:33 +0000
commitf5f7c8fb4e3e0e972644a6a60913141ab27800e5 (patch)
treeaf345a4a0a745807f5cc0c6ba40b812b00b2dd57
parent59cea4f2d3a7ff6723b120fb52a8958ef036537e (diff)
use the raw screen size not the strut adjusted size to determine max_height and width of a client
-rw-r--r--src/Window.cc10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Window.cc b/src/Window.cc
index b9bd0568..0a845279 100644
--- a/src/Window.cc
+++ b/src/Window.cc
@@ -906,12 +906,18 @@ void BlackboxWindow::getWMNormalHints(void) {
long icccm_mask;
XSizeHints sizehint;
- const Rect& screen_area = screen->availableArea();
-
client.min_width = client.min_height =
client.width_inc = client.height_inc = 1;
client.base_width = client.base_height = 0;
+
+ /*
+ use the full screen, not the strut modified size. otherwise when the
+ availableArea changes max_width/height will be incorrect and lead to odd
+ rendering bugs.
+ */
+ const Rect& screen_area = screen->getRect();
client.max_width = screen_area.width();
+
client.max_height = screen_area.height();
client.min_aspect_x = client.min_aspect_y =
client.max_aspect_x = client.max_aspect_y = 1;