In a GTK3 window with a custom GtkHeaderBar in the XFCE environment, there is a need to shift the window coordinates for correct positioning. Why does this happen and how to correctly take such indents into account?
Some thoughts:
When using a custom headerbar, you’re window switches from using server-side window decorations to client-side ones. This means that the window borders, etc. are drawn by the app, not the desktop compositor.
AFAIK this also includes the window shadow. So, the area drawn by the app is larger, as it now also includes the shadow.
If I know this right, the shadow is defined by the CSS stylesheet.
That aside, using gtk_window_move isn’t guaranteed to work anyway. Under Wayland-based compositors moving windows relative to the monitor isn’t possible for example, which is also why it was removed in GTK4.