diff options
author | rathnor <rathnor> | 2003-10-06 06:22:43 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2003-10-06 06:22:43 (GMT) |
commit | dda34421a3d586e6efd70a4a672266267dda7474 (patch) | |
tree | ad2dcb5335a03081542a91a6c8617cf89586304a /src/WinClient.cc | |
parent | 9a155ea7b5cf1b76aa7b9864aa3c1a7342f1f67c (diff) | |
download | fluxbox-dda34421a3d586e6efd70a4a672266267dda7474.zip fluxbox-dda34421a3d586e6efd70a4a672266267dda7474.tar.bz2 |
fix shape - all menus shaped, and some weird shape bugs
Diffstat (limited to 'src/WinClient.cc')
-rw-r--r-- | src/WinClient.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/WinClient.cc b/src/WinClient.cc index dadabe3..0e5e2e9 100644 --- a/src/WinClient.cc +++ b/src/WinClient.cc | |||
@@ -19,7 +19,7 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: WinClient.cc,v 1.29 2003/10/02 16:14:41 rathnor Exp $ | 22 | // $Id: WinClient.cc,v 1.30 2003/10/06 06:22:43 rathnor Exp $ |
23 | 23 | ||
24 | #include "WinClient.hh" | 24 | #include "WinClient.hh" |
25 | 25 | ||
@@ -633,17 +633,17 @@ void WinClient::applySizeHints(int &width, int &height, | |||
633 | int i = width, j = height; | 633 | int i = width, j = height; |
634 | 634 | ||
635 | // Check minimum size | 635 | // Check minimum size |
636 | if (width < 0 || width < min_width) | 636 | if (width < 0 || width < static_cast<signed>(min_width)) |
637 | width = min_width; | 637 | width = min_width; |
638 | 638 | ||
639 | if (height < 0 || height < min_height) | 639 | if (height < 0 || height < static_cast<signed>(min_height)) |
640 | height = min_height; | 640 | height = min_height; |
641 | 641 | ||
642 | // Check maximum size | 642 | // Check maximum size |
643 | if (max_width > 0 && width > max_width) | 643 | if (max_width > 0 && width > static_cast<signed>(max_width)) |
644 | width = max_width; | 644 | width = max_width; |
645 | 645 | ||
646 | if (max_height > 0 && height > max_height) | 646 | if (max_height > 0 && height > static_cast<signed>(max_height)) |
647 | height = max_height; | 647 | height = max_height; |
648 | 648 | ||
649 | // enforce incremental size limits, wrt base size | 649 | // enforce incremental size limits, wrt base size |