Normal ity things: try to make myself touch the gtk thing I'm supposed to be tou...
Ity Kitty [unit X-69] - VIOLENT FUCK ⇉ 40C3 @tranquillity@mastodon.minionflo.net
Normal ity things:
- try to make myself touch the gtk thing I'm supposed to be touching
- the gtk thing involves an embedded Wayland compositor
- test with foot first, works
- test with https://codeberg.org/TranquillityCodes/wl-hello, find out it breaks
- test wl-hello on sway, it works
- test wl-hello on weston, it breaks
- get distracted improving the ASSERT macros, adding a mental note to figure out how to print the function type on top of the function name
- add an ASSERT_ERRNO macro to wl-hello to help debug a failing mmap
- figure out that I misimplemented https://wayland.app/protocols/xdg-shell#xdg_toplevel:event:configure, fix it
- during all of this, keep updating the makefile to make it more robust
- find out that C++ allows printing the function name with args with PRETTY_FUNCTION but C doesn't. Get distracted fixing linker and compiler and makefile issues to allow compiling the wayland-scanner generated files with a C compiler, and override CC to gcc for compiling main.c with g++ for testing. Thanks default visibility difference between C and C++.
- start going down a rabbit hole in the gcc codebase of how does the gcc C vs C++ thing work for PRETTY_FUNCTION (where I am now)
I was supposed to be writing a toplevel switching thingy for the gtk compositor thingy! How did I end up in the gcc codebase :neobot_sob: