fix: popup position constrain not work for some app

This commit is contained in:
DreamMaoMao 2026-02-25 10:06:58 +08:00
parent a06774d494
commit 65378f4dc8
4 changed files with 118 additions and 47 deletions

View file

@ -3503,13 +3503,13 @@ void reapply_cursor_style(void) {
cursor_mgr = wlr_xcursor_manager_create(config.cursor_theme, cursor_size);
if(cursor_size > 0){
char size_str[16];
snprintf(size_str, sizeof(size_str), "%d", cursor_size);
if (cursor_size > 0) {
char size_str[16];
snprintf(size_str, sizeof(size_str), "%d", cursor_size);
setenv("XCURSOR_SIZE", size_str, 1);
}
if(config.cursor_theme){
if (config.cursor_theme) {
setenv("XCURSOR_THEME", config.cursor_theme, 1);
}