What is the size of Gnome's top bar?

  1. Maximize an active window
  2. Then measure its size
  3. Apply the new calculated size on your target program window

Just a theory, not sure if wmctrl and xdotool are still working fine with Wayland.

user@Bee3:~/Desktop$ wmctrl -lG
0x01600003 -1 136  54   1168 699  Bee3 @!68,27;BDHF  <-- desktop may be
0x02a0000a  0 454  60   912  664  Bee3 user@Bee3: ~/Desktop
user@Bee3:~/Desktop$ wmctrl -lG
0x01600003 -1 136  54   1168 699  Bee3 @!68,27;BDHF
0x02a0000a  0 136  54   1168 699  Bee3 user@Bee3: ~/Desktop  <-- terminal window maximized