Skip to content

Commit

Permalink
sizehints: tighten check
Browse files Browse the repository at this point in the history
When dealing with WM_NORMAL_HINTS, don't always assume that the size
hints need to be strictly-checked, and instead go based on those values
read; even if they might be considered "erroneous".

Fixes #775
  • Loading branch information
ThomasAdam committed Sep 1, 2023
1 parent b454ca0 commit c9d0018
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fvwm/events.c
Original file line number Diff line number Diff line change
Expand Up @@ -3724,11 +3724,8 @@ void HandlePropertyNotify(const evh_args_t *ea)
* request, due to XSizeHints disallowing resize -- FVWM would
* always use old values if the application decided to toggle
* such things, and FVWM would then never resize the window.
*
* Note that SET_HAS_NEW_WM_NORMAL_HINTS being set here to
* true is still valid.
*/
GetWindowSizeHintsWithCheck(fw, 1);
GetWindowSizeHintsWithCheck(fw, 0);
break;
default:
if (te->xproperty.atom == _XA_WM_PROTOCOLS)
Expand Down

0 comments on commit c9d0018

Please sign in to comment.