Skip to content

Commit

Permalink
panframes: disable pan_frames_mapped check
Browse files Browse the repository at this point in the history
This check was an optimisation, but now that Edge{Scroll,Thickness} can
change this, we should let the commands figure out for themselves when
to map/unmap.
  • Loading branch information
ThomasAdam committed Oct 22, 2023
1 parent 3eccb28 commit 927fd66
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions fvwm/virtual.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,6 +733,8 @@ int HandlePaging(
int mwidth, mheight;
int edge_thickness = m->virtual_scr.edge_thickness;

fvwm_debug(__func__, "ET (%s) is: %d", m->si->name, edge_thickness);

mwidth = monitor_get_all_widths();
mheight = monitor_get_all_heights();

Expand Down Expand Up @@ -1302,9 +1304,6 @@ void initPanFrames(struct monitor *ref)
if (ref == NULL)
return;

if (ref->pan_frames_mapped)
return;

edge_thickness = ref->virtual_scr.edge_thickness;

/* Not creating the frames disables all subsequent behavior */
Expand Down Expand Up @@ -1363,7 +1362,6 @@ void initPanFrames(struct monitor *ref)
checkPanFrames(m);
}
ref->virtual_scr.edge_thickness = saved_thickness;
ref->pan_frames_mapped = true;
fvwm_debug(__func__, "finished setting up per-monitor panframes");
}

Expand Down

0 comments on commit 927fd66

Please sign in to comment.