Skip to content

Commit

Permalink
FvwmPager: CalcGeom: initial rectangle off screen
Browse files Browse the repository at this point in the history
If CalcGeom isn't sent a valid monitor or is sent a monitor
different than the one being tracked, the default rectangle
is returned. Place this default rectangle off the screen like
is done with other windows.
  • Loading branch information
somiaj authored and ThomasAdam committed Mar 29, 2024
1 parent 4d67774 commit 3217152
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/FvwmPager/x_pager.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ static struct fpmonitor *fpmonitor_from_xy(int x, int y, bool allow_null)

static rectangle CalcGeom(PagerWindow *t, bool is_icon)
{
rectangle rec = {0, 0, 0, 0};
/* Place initial rectangle off screen. */
rectangle rec = {-32768, -32768, 0, 0};
struct fpmonitor *fp = fpmonitor_this(NULL);

/* If the monitor we expect to find is disabled, then
Expand Down

0 comments on commit 3217152

Please sign in to comment.