Recent

Author Topic: Window manager capabilities  (Read 443 times)

MarkMLl

  • Hero Member
  • *****
  • Posts: 5561
Window manager capabilities
« on: July 04, 2022, 02:55:27 pm »
Following on from a comment which touched on different DPI settings etc., is there any way of getting a complete list of exported capabilities and hints from the current window manager (aka desktop environment)?

I'm aware of e.g. https://specifications.freedesktop.org/wm-spec/wm-spec-latest.html but I know that there are additional things like font metrics which are passed from the WM: I don't know /how/ they're passed but I've seen a program's layout behave grossly differently on different WMs (refused to minimise beyond a certain point) which the developers involved attributed to a missing hint or metric.

Of course, they couldn't agree who should be fixing it...

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

codic124

  • Newbie
  • Posts: 1
Re: Window manager capabilities
« Reply #1 on: September 05, 2022, 09:27:09 pm »
Font metrics are usually not passed on from the WM at all, although they might be from other parts of a desktop environment. If by minimize you mean resize/shrink, it is because the programs set a minimum size (eg via the ICCCM property WM_NORMAL_HINTS) which wms might choose to honor in different ways.

(assuming x11, of course)

MarkMLl

  • Hero Member
  • *****
  • Posts: 5561
Re: Window manager capabilities
« Reply #2 on: September 05, 2022, 09:57:17 pm »
See https://github.com/Ultimaker/Cura/issues/10988 and https://forums.raspberrypi.com/viewtopic.php?p=1946554&sid=fe3368394b4b90e14aacb0ee61fe43c4#p1946554

The app (Cura) was behaving differently depending on the X11 WM running on the computer, and the developers implicated QFontMetrics.

Therefore there /are/ metrics passed by the WM, but I don't know the mechanism: I suspect ICCCM-related.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018