Sublime Forum

Maximized window state is not saved using gtk client side window decorations false

#1

Hi team,
The build is 4152. I use GNOME Shell 44.3 on Xorg. The window position is not saved if “gtk_client_side_window_decorations”: false.

I use “gtk_client_side_window_decorations”: false to hide the window title bar with Gnome Extensions. These extensions became broken after updates, and sometimes they do not work for SublimeText but can work for other applications.

The position is saved well using “gtk_client_side_window_decorations”: true.
It will be perfect if you add the feature to hide the SublimeText Titlebar natively by the application itself.

0 Likes

#2

By “window position is not saved” do you mean that the window position is not restored correctly when restarting Sublime Text?

0 Likes

#3

Yes. I work in maximized mode, and when I exit and launch SublimeText it is restarted in windowed mode. This happen when “gtk_client_side_window_decorations”: false.

I have found the workaround to start the application maximized and hide the titlebar using devilspie2:

-- ~/.config/devilspie2/devilspie2.lua
scripts_window_open = {
  "open.lua"
}
-- ~/.config/devilspie2/open.lua
if (get_application_name() == "Sublime Text") then
    undecorate_window();
    maximize();
end
0 Likes

#4

I can’t reproduce this behavior in GNOME 42.9, Xorg.

0 Likes

#5

I suppose it’s Gnome on Xorg 44 and maybe 43 versions specific. I had not this issue on the older versions of Gnome.

0 Likes