Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(CurrentPage, AnyScreen) calculation slightly too generous. (Regression cf. fvwm2.) #443

Closed
taobert opened this issue Feb 23, 2021 · 5 comments · Fixed by #445
Closed

(CurrentPage, AnyScreen) calculation slightly too generous. (Regression cf. fvwm2.) #443

taobert opened this issue Feb 23, 2021 · 5 comments · Fixed by #445
Assignees
Labels
has:config Issue has config attached type:bug Something's broken!
Milestone

Comments

@taobert
Copy link

taobert commented Feb 23, 2021

Thanks for reporting your bug here! The following template will help with
giving as much information as possible so that it's easier to diagnose and
fix.

Upfront Information

Please provide the following information by running the command and providing
the output.

  • Fvwm3 version (run: fvwm3 --version)

Current git master:

# fvwm3 --version
fvwm3 1.0.3 (1.0.2-58-g5114d153)
with support for:  ReadLine, PNG, Shape, XShm, SM, Bidi text, XRandR, XRender, XCursor, XFT, NLS

fvwm3 comes with NO WARRANTY, to the extent permitted by law. You may
redistribute copies of fvwm under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
  • Linux distribution or BSD name/version

Debian Sid

# uname -a
Linux draven 5.10.0-3-amd64 #1 SMP Debian 5.10.13-1 (2021-02-06) x86_64 GNU/Linux
  • Platform (run: uname -sp)
# uname -sp
Linux unknown
# grep model /proc/cpuinfo |tail -n1
model name      : Intel(R) Core(TM) i7-4930K CPU @ 3.40GHz

Expected Behaviour

Prev (CurrentPage, AnyScreen) Focus should cycle between windows on any screen of the current page,
but not focus any windows on other pages.

Actual Behaviour

Prev (CurrentPage, AnyScreen) Focus will include maximised windows on adjacent pages in it's focusing.
Prev (CurrentPage) Focus does not include any windows on adjacent pages.
Windows which are 1px away from the page border do not become focused (see comments in attached config.mwe.txt),
so "maximizing" a window to less than the full screen size seems to work around this inappropriate focusing.

Enabling logging

I've attached a log file, but it doesn't correspond precisely to the reproduction steps below.
If you need one which matches better, i'll try.

As an aside, clicking on the file Attach files bar and navigating to a file (i haven't tried other methods)
doesn't allow me to upload the logfile without renaming (as .log is an unsupported suffix).

Steps to Reproduce

How can the problem be reproduced? For this, the following is helpful:

I've attached a MWE config file. After starting with this file,

  1. create a couple of xterms (right mouse menu),
  2. mouse to the page below
  3. create another xterm
  4. maximise this xterm (Alt-Enter while focused)
  5. mouse back up to the top page
  6. Alt-Tab to switch between xterms, and get drawn back to the lower page's xterm.
  7. go back and confirm that focusing is correct when the third xterm is not maximized.
  • Does the problem also happen with Fvwm2?

No.

Does Fvwm3 crash?

No.

Extra Information

config.mwe.txt
fvwm3-output.log.txt

@taobert taobert added the type:bug Something's broken! label Feb 23, 2021
@ThomasAdam ThomasAdam added the has:config Issue has config attached label Feb 23, 2021
@ThomasAdam ThomasAdam self-assigned this Feb 23, 2021
@ThomasAdam ThomasAdam added this to the 1.0.3 milestone Feb 23, 2021
ThomasAdam added a commit that referenced this issue Feb 23, 2021
When calculating if a window is on a page, ensure its position is less
than the overall height/width of the screen, and not equal to it.  This
would otherwise mean that maximized windows would be taken into account
when in fact they're on a separate page entirely.

Fixes #443
@ThomasAdam
Copy link
Member

Hey @taobert

Hmm. Can you check ta/gh-443 and let me know if that fixes things?

@taobert
Copy link
Author

taobert commented Feb 24, 2021

Looks good.
Love ya work.:)

@taobert
Copy link
Author

taobert commented Feb 24, 2021

Somewhat as an aside, i see in dev-docs/NEW-COMMANDS.md the lines:

Desktops are linear in their arrangement.  There is no concept of pages within
a desktop (as there is with FVWM2).

Will DeskTopSize be disappearing?

@ThomasAdam
Copy link
Member

Hi @taobert

No -- that's just some ideas, and I forget now why I mentioned it.

ThomasAdam added a commit that referenced this issue Feb 24, 2021
When calculating if a window is on a page, ensure its position is less
than the overall height/width of the screen, and not equal to it.  This
would otherwise mean that maximized windows would be taken into account
when in fact they're on a separate page entirely.

Fixes #443
@ThomasAdam
Copy link
Member

Hi @taobert

I forgot to mention, your MyMaximize function can be replaced with the builtin command Maximize fullscreen so you don't need to mess with removing window decorations, etc.

@ThomasAdam ThomasAdam moved this to Done in FVWM3 Sep 18, 2022
@ThomasAdam ThomasAdam added this to FVWM3 Sep 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has:config Issue has config attached type:bug Something's broken!
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants