X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=src%2FWindow.cc;h=0a8452791f9922ba28fc59b63ddb7131b5efe062;hb=f5f7c8fb4e3e0e972644a6a60913141ab27800e5;hp=b9bd05689c0d7d53abf8ef6fad2b8c32c93c3b78;hpb=0305cbdc3ae8525c74b2bb9b23884035549e3407;p=chaz%2Fopenbox 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;