fvwmorg / fvwm3

FVWM version 3 -- the successor to fvwm2
Other
511 stars 78 forks source link

GotoDesk: fallback to current monitor if not given #966

Closed ThomasAdam closed 6 months ago

ThomasAdam commented 6 months ago

When parsing GotoDesk, don't assume n -> m arguments, as there's validity for this command to have different combinations.

Instead, always assume the first argument is a potential monitor, and look that up. If it isn't found as a monitor, treat the rest of the command as desk coordinates to lookup. Otherwise, skip over the valid monitor name, and perform the desk lookup.