-
Notifications
You must be signed in to change notification settings - Fork 614
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
[BUG] Weird visual glitch when using the emoji plugin #2036
Comments
This is kinda a rofi bug.. rofi determines the size of a row in the listview based by creating a row and getting the size of the widget.. If fonts has, mostly with icons, suddenly a glyph that is bigger then expected, this happens. |
Pushed possible fix, if this does not fix it, I am not sure if it is easily fixable in rofi. |
Thanks for testing and the trace. |
To bad I am missing entries from the trace that crashes. |
What distro are you using? |
I'm using Arch Linux |
well, it's because variable name redefined. const char *font = rofi_theme_get_string(WIDGET(tb), "font", NULL); but at line 147 PangoFont *font = pango_context_load_font(p_context, tbfc->pfd); I tried rename to pfont it works (no segmentation fault at least) PangoFont *pfont = pango_context_load_font(p_context, tbfc->pfd);
if (pfont) {
PangoFontMetrics *fm = pango_font_get_metrics(pfont, NULL);
if (fm) {
int h = pango_font_metrics_get_height(fm) / PANGO_SCALE;
if (h > 0) {
tbfc->height = h;
}
pango_font_metrics_unref(fm);
}
g_object_unref(pfont);
} |
aah stupid error by me, Thanks! (/me goes to add -Wshadow to compile flags) |
* Add -Wshadow to build system. Issue: #2036 * Take out unintended change * [Icon] Add more descriptive variable name.
Rofi version (rofi -v)
Version: 1.7.5
Configuration
https://gist.github.com/madprops/fb40662a5eb644dcfcd931b14ba5e8ab
Theme
https://gist.github.com/madprops/3ab74683add2faebfbb44a411a35722d
Timing report
No response
Launch command
rofi -modi emoji -show emoji
Step to reproduce
Search for
skull
As you can see below the first item, the second item looks weird.
Is that a rofi bug?
Expected behavior
No glitch.
Actual behavior
Glitch.
Additional information
I'm using the emoji plugin.
Which I think is this one: https://archlinux.org/packages/extra/x86_64/rofi-emoji/
Using wayland display server protocol
I've checked if the issue exists in the latest stable release
The text was updated successfully, but these errors were encountered: