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

Nano-X - Window repaint problem #28

Closed
JulStrat opened this issue May 7, 2019 · 8 comments
Closed

Nano-X - Window repaint problem #28

JulStrat opened this issue May 7, 2019 · 8 comments

Comments

@JulStrat
Copy link
Contributor

JulStrat commented May 7, 2019

Hello.
My env. Raspberry Pi Linux raspberrypi 4.14.98+ #1200 Tue Feb 12 20:11:02 GMT 2019 armv6l GNU/Linux
Microwindows config - config-linux.fb.
Problem - The window does not redraw properly after its movement.

Screenshots from demo application demo-ttffont attached.
Thanks.

ttfdemo

ttfdemo_after_move

@ghaerr
Copy link
Owner

ghaerr commented May 7, 2019 via email

@JulStrat
Copy link
Contributor Author

Hello.
Coming back.

Does it only happen with that just demo, or all the demo-* demos?

Yes. It's general behavior for all nano-x demo-*.

You might also try some of the mw* demos (win32 api).

mw* demos repaint window properly, but have other problem. I can't resize window.

Try dragging quickly, then slowly. Type a few characters afterwards.

Dragging window (nano-x demos) in up-left (only) direction works properly, any other direction repaint window after mouse double click in window (with 2-3 sec delay).

I have tested MOUSE=GPMMOUSE setting with same results.

My config - config-linux.fb

ARCH=LINUX-NATIVE
VTSWITCH=Y

I will check VTSWITCH=N also.

Thanks.
Best regards.

@JulStrat
Copy link
Contributor Author

P.S. If I switch to other VT and then back to original - window repaints!

@ghaerr
Copy link
Owner

ghaerr commented May 12, 2019 via email

@JulStrat
Copy link
Contributor Author

Hello, Greg !
I updated my repo up to your commit dfe93ab .
And now window (nano-X and nuklear demo apps) repaint properly without your workaround in nanox/srvfunc.c !
Regardless option - VTSWITCH.

Regards,

Julian.

@ghaerr
Copy link
Owner

ghaerr commented May 23, 2019

Great news Julian! I'm still not sure whether VTSWITCH might be broken but I have fixed some other issues in the window manager. I'll consider this issue closed.

@ghaerr ghaerr closed this as completed May 23, 2019
@ghaerr ghaerr reopened this Jun 3, 2019
@ghaerr
Copy link
Owner

ghaerr commented Jun 3, 2019

Julian - just wanted you to know that I finally actually debugged your problem. I installed a linux framebuffer VM on my laptop and found the exact same window redraw problem you had. The problem is now fixed, it was related to two problems, but would not show when the SCREEN_PIXTYPE was set to MWPF_TRUECOLORARGB, which was not the default for config.linux-fb. The screen colors were also incorrect. Both are fixed now, and the config file can be set to either SCREEN_PIXTYPE value and all works ok. I also tested VTSWITCH and it works correctly.

I am seeing some problems with the keyboard being left in non-echo mode after exiting from a nano-X application (say demo-ttfont) using the close box in the app, but not when hitting the nano-X server QUIT key (which is BREAK/Pause or now also ESC). I am still working on this problem.

@JulStrat
Copy link
Contributor Author

JulStrat commented Jun 3, 2019

Hello, Greg.

The problem is now fixed, it was related to two problems, but would not show when the SCREEN_PIXTYPE was set to MWPF_TRUECOLORARGB, which was not the default for config.linux-fb.

Good news! I am testing your fixes on Raspberry.

Regards,
Julian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants