Get client rect of the monitor

Hi, ALL,

Is it possible to get a client rect of the monitor?

I.e. size without the taskbar (and possibly without global menu).

Thank you.

It’s possible to get the work area only under X11: https://developer.gnome.org/gdk4/stable/gdk4-X-Window-System-Interaction.html#gdk-x11-monitor-get-workarea

Other windowing systems do not have this concept.

Emmanuelle,
Do you mean plain X11or GNOME/KDE with X11 backend vs. Wayland backend?

Thank you.

I mean plain X11. I’m not entirely sure any Wayland compositor will expose the work area through XWayland to X11 clients, but it might work.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.