Commit a76a9a3
committed
fix(linux): apply the window title to frameless windows
setTitle skipped gtk_window_set_title whenever the window was created
with Frameless: true. newWindowImpl applies options.Title through that
same method, so a frameless window never received a title at all, and
every later SetTitle call was dropped too.
On Linux the title is not a titlebar: gtk_window_set_title writes the
WM_NAME/_NET_WM_NAME hints that taskbars, window switchers and pagers
label the window with. Decorations are governed separately, by
gtk_window_set_decorated in setFrameless/setBorderless, so titling an
undecorated window draws nothing.
The visible effect was that every window of a frameless application
carried the same label — the g_set_prgname fallback — leaving multiple
windows indistinguishable in the taskbar and in alt-tab.
Applies to both the GTK4 and GTK3 backends.1 parent 86b39da commit a76a9a3
3 files changed
Lines changed: 15 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
1309 | | - | |
1310 | | - | |
1311 | | - | |
1312 | | - | |
1313 | | - | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
1314 | 1316 | | |
1315 | 1317 | | |
1316 | 1318 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1704 | 1704 | | |
1705 | 1705 | | |
1706 | 1706 | | |
1707 | | - | |
1708 | | - | |
1709 | | - | |
1710 | | - | |
1711 | | - | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
| 1713 | + | |
1712 | 1714 | | |
1713 | 1715 | | |
1714 | 1716 | | |
| |||
0 commit comments