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

flickering under wayland session, once again #1695

Open
alexandrustinov opened this issue Jun 1, 2023 · 0 comments
Open

flickering under wayland session, once again #1695

alexandrustinov opened this issue Jun 1, 2023 · 0 comments

Comments

@alexandrustinov
Copy link

The issue does not show itself under Xorg, but sporadically happens under Wayland session.

Attempt to start in Maximized mode (3): Far2l tries to resize itself using incorrect width and height which both exceeds display dimensions and desktop area (the height), then after small but visible 0.3 delay it resizes back to normal (after the FIRST PAINT event).

Environment: CentOS Stream 9, kernel 6.1.31-1.el9.elrepo.x86_64, wxBase-3.2.2.1-1.el9.x86_64, far2l master

~/.config/far2l/winstate content:

3
1920
991
0
0

1920x1080, 100% scale, here the log (as you can see something wrong happens with width 1972 which exceeds 1920)

WinPortInitRegistry: OK 
WinPortFrame: display 0 from 0.0 area 0.0 - 1919.1079
LoadFontFromSettings: used Iosevka Fixed ExtraLight 14
Font 9 x 25 . 1: 'Iosevka Fixed' - monospaced stable (integer)
OnInitialized: client size = 1920 x 991
Current client size: 1920 991 font 9 25
Changing size: 80 x 25 -> 213 x 39 
OnConsoleResized client size: 1920 991
argv[0]='far2l' g_strFarModuleName='/usr/bin/far2l' translation_prefix='/usr/' temp='/tmp/far2l_3e8_0/' config='/home/user/.config/far2l'
Current client size: 1972 1067 font 9 25
Changing size: 213 x 39 -> 219 x 42 with notify
ExclusiveHotkeys::SetTriggerKeys: ctrl_left=0 ctrl_right=0 alt_left=0 alt_right=0 win_left=0 win_right=0
OnConsoleResized client size: 1920 1015
OnConsoleResized SET client size: 1971 1050
STARTUP: 28710
FIRST_PAINT: 170 msec
Extra refresh
Current client size: 1920 1015 font 9 25
Changing size: 219 x 42 -> 213 x 40 with notify
OnConsoleResized client size: 1920 1015

Practically the same happens in 3840x2160 mode, 100% scale (see 3888 width)

WinPortInitRegistry: OK 
WinPortFrame: display 0 from 0.0 area 0.0 - 3839.2159
LoadFontFromSettings: used Iosevka Fixed ExtraLight 14
Font 9 x 25 . 1: 'Iosevka Fixed' - monospaced stable (integer)
OnInitialized: client size = 1920 x 991
Current client size: 1920 991 font 9 25
Changing size: 80 x 25 -> 213 x 39 
OnConsoleResized client size: 1920 991
argv[0]='far2l' g_strFarModuleName='/usr/bin/far2l' translation_prefix='/usr/' temp='/tmp/far2l_3e8_0/' config='/home/user/.config/far2l'
Current client size: 3892 2147 font 9 25
Changing size: 213 x 39 -> 432 x 85 with notify
ExclusiveHotkeys::SetTriggerKeys: ctrl_left=0 ctrl_right=0 alt_left=0 alt_right=0 win_left=0 win_right=0
OnConsoleResized client size: 3840 2095
OnConsoleResized SET client size: 3888 2125
CommandLine::ShowBackground: done
CommandLine::ShowBackground: done
STARTUP: 51575
CommandLine::ShowBackground: done
CommandLine::ShowBackground: done
CommandLine::ShowBackground: done
CommandLine::ShowBackground: done
FIRST_PAINT: 256 msec
Extra refresh
Current client size: 3840 2095 font 9 25
Changing size: 432 x 85 -> 426 x 83 with notify
OnConsoleResized client size: 3840 2095

and 3840x2160 mode, 200% scale (see 1972 width instead of 1920):

WinPortInitRegistry: OK 
WinPortFrame: display 0 from 0.0 area 0.0 - 3839.2159
LoadFontFromSettings: used Iosevka Fixed ExtraLight 14
Font 9 x 25 . 1: 'Iosevka Fixed' - monospaced stable (integer)
OnInitialized: client size = 1920 x 991
Current client size: 1920 991 font 9 25
Changing size: 80 x 25 -> 213 x 39 
OnConsoleResized client size: 1920 991
argv[0]='far2l' g_strFarModuleName='/usr/bin/far2l' translation_prefix='/usr/' temp='/tmp/far2l_3e8_0/' config='/home/user/.config/far2l'
Current client size: 1972 1067 font 9 25
Changing size: 213 x 39 -> 219 x 42 with notify
ExclusiveHotkeys::SetTriggerKeys: ctrl_left=0 ctrl_right=0 alt_left=0 alt_right=0 win_left=0 win_right=0
OnConsoleResized client size: 1920 1015
OnConsoleResized SET client size: 1971 1050
STARTUP: 62881
FIRST_PAINT: 262 msec
Extra refresh
Current client size: 1920 1015 font 9 25
Changing size: 219 x 42 -> 213 x 40 with notify
CommandLine::ShowBackground: done
CommandLine::ShowBackground: done
OnConsoleResized client size: 1920 1015
CommandLine::ShowBackground: done
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

1 participant