[kde] [Bug 484800] New: gtk function gtk_window_set_decorated() can set the window titlebar off, but it doesn't work on Wayland KDE. That function works well on gnome Wayland.
JiBe
bugzilla_noreply at kde.org
Sun Mar 31 08:41:54 BST 2024
https://bugs.kde.org/show_bug.cgi?id=484800
Bug ID: 484800
Summary: gtk function gtk_window_set_decorated() can set the
window titlebar off, but it doesn't work on Wayland
KDE. That function works well on gnome Wayland.
Classification: I don't know
Product: kde
Version: unspecified
Platform: Arch Linux
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: jibejibejb at gmail.com
Target Milestone: ---
SUMMARY
gtk+3.0 and gtk4 have a function gtk_window_set_decorated(GtkWindow* window,
gboolean setting) .
That function can set the window titlebar off, but it doesn't work on Wayland
KDE.
That function works well on gnome Wayland.
STEPS TO REPRODUCE
1. Create a window by using gtk+3.0 or gtk4, and set the titlebar off.
#include <gtk/gtk.h>
int main( int argc, char *argv[])
{
GtkWidget *window;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_decorated(GTK_WINDOW (window), 0);
gtk_widget_show(window);
gtk_main();
return 0;
}
2. Compile the program
gcc -o hello_world $(pkg-config --cflags --libs gtk+-3.0) main.c
3. Run the program
GDK_BACKEND=wayland ./hello_world
OBSERVED RESULT
A blank window with titlebar.
The titlebar doesn't disappear.
EXPECTED RESULT
A blank windows without titlebar.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 6.0.3
(available in About System)
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
ADDITIONAL INFORMATION
OS: Arch Linux x86_64
WM: KWin (Wayland)
WM Theme: Breeze
Theme: Breeze (Light) [QT], Breeze [GTK2/3]
Icons: breeze [QT], breeze [GTK2/3/4]
Font: Noto Sans CJK SC (10pt) [QT], Noto Sans CJK SC (10pt) [GTK2/3]
Cursor: breeze (24px)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list