Workaround KDE layer shell bug

This commit is contained in:
Kovid Goyal 2025-04-22 13:46:38 +05:30
parent fc5fc7c9c4
commit 22fe41a047
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
2 changed files with 3 additions and 4 deletions

View file

@ -68,9 +68,7 @@ Make a Quake like quick access terminal
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
.. versionadded:: 0.42.0
Support for quake mode, works only on Wayland, except for GNOME. On KDE
because of a `bug in kwin <https://bugs.kde.org/show_bug.cgi?id=503121>`__,
the terminal appears and hides only once, after that it does not re-appear.
Support for quake mode, works only on Wayland, except for GNOME.
This kitten can be used to make a quick access terminal, that appears and
disappears at a key press. To do so use the following command::

3
glfw/wl_window.c vendored
View file

@ -1681,7 +1681,8 @@ void _glfwPlatformMaximizeWindow(_GLFWwindow* window)
void _glfwPlatformShowWindow(_GLFWwindow* window)
{
if (!window->wl.visible) {
if (!is_layer_shell(window)) create_window_desktop_surface(window);
if (is_layer_shell(window)) layer_set_properties(window);
else create_window_desktop_surface(window);
window->wl.visible = true;
commit_window_surface(window);
if (is_layer_shell(window)) debug("Layer shell surface mapped waiting for configure event from compositor\n");