-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure a window's monitor is defined when placing it.
It is possible that the FvwmWindow monitor is NULL, that can cause a crash when broadcasting the window's configuration to packet modules by referencing a NULL pointer to send the monitor's ID. This now happens with StartsOnPage due to #1076 setting the monitor to NULL initially. This fix ensures that the monitor is always defined after processing any StartsOnScreen settings, by setting it to the current monitor if it is still NULL. Also ensuring the monitor is defined here simplifies some future checks that were doing the same thing by falling back to the current monitor if it was undefined. This fixes the crash reported in #1100.
- Loading branch information
1 parent
f789db3
commit e514f01
Showing
1 changed file
with
14 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters