Open RossComputerGuy opened 4 years ago
@RossComputerGuy I am too lazy to look at Gtk docs. Do you have a self-contained, runnable example that can be used to reproduce this issue?
No but I have the code that creates this window for my setup, https://github.com/ExpidusOS/shell/blob/master/share/expidus-shell/expidus/launcher.lua
Wait, you are creating Gtk windows from within Awesome's Lua code? That's a dangerous thing to do (but should not really relate to the error in question).
Also, that code uses soooo much more than just Gtk. I do not want to install libhandy just for this. :-(
Anyway, here is a pure-Gtk version that does not reproduce the issue, sorry (save that code in a file and run it):
local lgi = require("lgi")
local Gdk = lgi.Gdk
local GObject = lgi.GObject
local Gio = lgi.Gio
local Gtk = lgi.Gtk
local win = Gtk.Window.new(Gtk.WindowType.TOPLEVEL)
win:set_type_hint(Gdk.WindowTypeHint.DESKTOP)
win:set_title("Title here")
win:set_default_size(200, 100)
function win.on_destroy()
Gtk.main_quit()
end
win:add(Gtk.Button.new_with_label("Button"))
win:show_all()
Gtk.main()
(Also, the window does not get a titlebar here...)
Yes, I'm making a Gtk window for my own launcher. That's why I also have C code mixed in. I also am using libhandy so that I can work on mobile support.
Output of
awesome --version
:How to reproduce the issue: Use LGI to create a GTK window with the type hint of
Gdk.WindowTypeHint.DESKTOP
Actual result: No errors like this should appear
Expected result: When the window is created: