Skip to content

Commit 18a2484

Browse files
committed
fix: unset QT_STYLE_OVERRIDE on startup
when building with qt6 and using a kvantum style for some reason the window will detect an input at coordinate (0,0) in the upper right corner and won't let the user paint unsetting the env variable fixes it
1 parent 09b2b5c commit 18a2484

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ int main(int argc, char *argv[]) {
4444
setenv("QT_AUTO_SCREEN_SCALE_FACTOR", "0", 1);
4545
setenv("QT_QT_ENABLE_HIGHDPI_SCALING", "0", 1);
4646
setenv("QT_SCALE_FACTOR", "1", 1);
47+
//unset qt style override, there's a bug with input when using qt6 build and kvantum
48+
setenv("QT_STYLE_OVERRIDE", "", 1);
4749

4850
// history size
4951
history = get_int("history");

0 commit comments

Comments
 (0)