Force X11 on linux
Wayland is not yet compatible with wxWidgets (or rather the other way around). Until this happens, we must force the x11 compositor while running. Under wayland, this will map to the wayland-x11 compatibility layer. Fixes: lp:1816637 * https://bugs.launchpad.net/kicad/+bug/1816637
This commit is contained in:
parent
036be7db84
commit
51fce4bad8
|
@ -135,6 +135,10 @@ struct APP_SINGLE_TOP : public wxApp
|
|||
wxSetEnv ( wxT("UBUNTU_MENUPROXY" ), wxT( "0" ) );
|
||||
}
|
||||
|
||||
// Force the use of X11 backend (or wayland-x11 compatibilty layer). This is required until wxWidgets
|
||||
// supports the Wayland compositors
|
||||
wxSetEnv( wxT( "GDK_BACKEND" ), wxT( "x11" ) );
|
||||
|
||||
// Disable overlay scrollbars as they mess up wxWidgets window sizing and cause excessive redraw requests
|
||||
wxSetEnv( wxT( "GTK_OVERLAY_SCROLLING" ), wxT( "0" ) );
|
||||
|
||||
|
|
|
@ -230,6 +230,10 @@ struct APP_KICAD : public wxApp
|
|||
wxSetEnv ( wxT("UBUNTU_MENUPROXY" ), wxT( "0" ) );
|
||||
}
|
||||
|
||||
// Force the use of X11 backend (or wayland-x11 compatibilty layer). This is required until wxWidgets
|
||||
// supports the Wayland compositors
|
||||
wxSetEnv( wxT( "GDK_BACKEND" ), wxT( "x11" ) );
|
||||
|
||||
// Disable overlay scrollbars as they mess up wxWidgets window sizing and cause excessive redraw requests
|
||||
wxSetEnv( wxT( "GTK_OVERLAY_SCROLLING" ), wxT( "0" ) );
|
||||
|
||||
|
|
Loading…
Reference in New Issue