Skip to content

Commit

Permalink
WIP: 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 21, 2023
1 parent 0791b5b commit 0e29ad3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 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 @@ -1304,8 +1306,8 @@ void initPanFrames(struct monitor *ref)
if (ref == NULL)
return;

if (ref->pan_frames_mapped)
return;
//if (ref->pan_frames_mapped)
// return;

edge_thickness = ref->virtual_scr.edge_thickness;

Expand Down Expand Up @@ -1367,7 +1369,7 @@ void initPanFrames(struct monitor *ref)
checkPanFrames(m);
}
ref->virtual_scr.edge_thickness = saved_thickness;
ref->pan_frames_mapped = true;
//ref->pan_frames_mapped = true;
fvwm_debug(__func__, "finished setting up per-monitor panframes");
}

Expand Down

0 comments on commit 0e29ad3

Please sign in to comment.