xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #532: noresize.patch

File noresize.patch, 757 bytes (added by Antoine Martin, 7 years ago)

if the size hints don't make sense, use min=max

  • xpra/x11/gtk_x11/window.py

     
    10221022            minw,minh = mins
    10231023            maxw,maxh = maxs
    10241024            if maxw<minw or maxh<minh:
    1025                 size_hints.min_size = min(minw, maxw), min(minh, maxh)
    1026                 size_hints.max_size = max(minw, maxw), max(minh, maxh)
     1025                size_hints.min_size = max(minw, maxw), max(minh, maxh)
     1026                size_hints.max_size = size_hints.min_size
    10271027                log.warn("invalid min_size=%s / max_size=%s changed to: %s / %s",
    10281028                         mins, maxs, size_hints.min_size, size_hints.max_size)
    10291029