Bug 167411 - Impress: disable the blinking effect for the border of the selected element.
Summary: Impress: disable the blinking effect for the border of the selected element.
Status: NEEDINFO
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
25.2.4.3 release
Hardware: All Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: GTK3
  Show dependency treegraph
 
Reported: 2025-07-07 15:24 UTC by tirengarfio
Modified: 2025-07-21 08:35 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tirengarfio 2025-07-07 15:24:20 UTC
Description:
Hi, 

looks like the blinking border is still bliking after disable animations on Ubuntu 24.04. 

https://ask.libreoffice.org/t/disable-the-blinking-effect-for-the-frame-of-the-selected-element/124127

Im on Libreoffice 25.2.

Regards

Steps to Reproduce:
1. Select and element in a slide. 
2. The border blinks event if animations are disabled for the whole system.
3.

Actual Results:
The border of selected items blink.

Expected Results:
It should not blink if animations are disable on the system (Ubuntu 24.04).


Reproducible: Always


User Profile Reset: No

Additional Info:
Looks like the problem is now happening on Windows.
Comment 1 Michael Weghorn 2025-07-07 17:14:25 UTC
What's the output of

    gsettings get org.gnome.desktop.interface enable-animations

(and the corresponding entry in `~/.config/gtk-3.0/settings.ini`) on your system? If you're using the default Ubuntu/GNOME session and that's `false`, I'd expect animations to be disabled.

If that doesn't work for you: What's the exact version info from "Help" -> "About LibreOffice" and what's your desktop environment?

( https://ask.libreoffice.org/t/disable-the-blinking-effect-for-the-frame-of-the-selected-element/124127 mentions `org.gnome.desktop.interface cursor-blink`, which is something else.)

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: c7fc1f05e0a144a66e0e10a6958fbd928552a572
CPU threads: 32; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 2 tirengarfio 2025-07-08 09:05:37 UTC
Hi Michael,

after switching from x11 to wayland and the border is not blinking anymore.

Anyway, the output of gsettings get org.gnome.desktop.interface enable-animations is false.

The version is 

Version: 25.2.4.3 (X86_64) / LibreOffice Community
Build ID: 33e196637044ead23f5c3226cde09b47731f7e27
CPU threads: 22; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: CL threaded

Regards
Javier
Comment 3 Michael Weghorn 2025-07-09 06:10:40 UTC
Thanks for the additional details.

(In reply to tirengarfio from comment #2)
> after switching from x11 to wayland and the border is not blinking anymore.
> 
> Anyway, the output of gsettings get org.gnome.desktop.interface
> enable-animations is false.

Does this mean it works as expected in a GNOME Wayland session, but not a GNOME X11 one?

If so: Just to be sure, what's the value of `gtk-enable-animations` in ~/.config/gtk-3.0/settings.ini ?
Comment 4 tirengarfio 2025-07-09 08:18:53 UTC
No problem. Yes, that's what I mean. Sorry, I don´t have that file settings you mention neither in gtk-3.0 folder nor in gtk-4.0 folder.
Comment 5 Michael Weghorn 2025-07-11 06:57:51 UTC
Odd. It works just fine for me in a GNOME X11 session on Debian testing (gnome-session  48.0-1), so I'm wondering whether this is maybe a bug outside of LibreOffice's control, e.g. some problem with some GNOME components provided by your distro.

2 things you could double-check to narrow this further down:

1) In the "Accessibility" settings in GNOME settings, is the "Animation Effects" toggle off?

2) Does it work if you use a GNOME Wayland session, but run LibreOffice on XWayland, by starting libreoffice using `GDK_BACKEND=x11 libreoffice` from the command line?

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: 520(Build:2)
CPU threads: 32; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-GB (en_GB.UTF-8); UI: en-GB
Debian package version: 4:25.2.3-2
Calc: threaded

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2b77994d455b8d066baf6b67c1820fbb736b538f
CPU threads: 32; OS: Linux 6.12; UI render: default; VCL: gtk3
Locale: en-US (en_GB.UTF-8); UI: en-US
Calc: threaded
Comment 6 tirengarfio 2025-07-17 09:25:09 UTC
Hi again,

1) Animations (Accesibility > Seeing > Reduce animation) is OFF.

2) I if run that command (GDK_BACKEND=x11 libreoffice) while being on a session on Wayland, the mentioned frame blinks while being selected.
Comment 7 tirengarfio 2025-07-17 09:30:43 UTC
This is the version I'm using:

Version: 25.2.3.2 (X86_64) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 8; OS: Linux 6.11; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded

I downloaded it from the Libreoffice official site. I'm on Ubuntu 24.04. Let me know if you need more details.
Comment 8 Michael Weghorn 2025-07-21 08:35:18 UTC
(In reply to tirengarfio from comment #6)
> Hi again,
> 
> 1) Animations (Accesibility > Seeing > Reduce animation) is OFF.
> 
> 2) I if run that command (GDK_BACKEND=x11 libreoffice) while being on a
> session on Wayland, the mentioned frame blinks while being selected.

Thanks for the additional info. I can actually reproduce in an Ubuntu 24.04 VM with GDK_BACKEND=x11, but not when LO runs as a native Wayland app.

I cannot reproduce in my development setup on Debian testing, though.

I don't really have any further ideas at the moment, am still wondering whether this might be some issue in the GNOME/GTK stack in Ubuntu 24.04, rather than in LibreOffice.

The below is the LibreOffice logic to enable/disable animations, which looks OK to me:


bool GtkSalFrame::GetUseReducedAnimation() const
{
    if (!m_pWindow)
        return false;
    GtkSettings* pSettings = gtk_widget_get_settings(m_pWindow);
    gboolean bAnimations;
    g_object_get(pSettings, "gtk-enable-animations", &bAnimations, nullptr);
    return !bAnimations;
}