Questions tagged [icccm]

X11 Inter-Client Communication Conventions Manual: a manual describing conventions that can be used by X11 clients, servers, window managers etcetera to better interoperate.

X11 Inter-Client Communication Conventions Manual: a manual describing conventions that can be used by X11 clients, servers, window managers etcetera to better interoperate. The manual can be found at http://tronche.com/gui/x/icccm

10 questions
13
votes
3 answers

How to identify top-level X11 windows using xlib?

I'm trying to get a list of all top level desktop windows in an X11 session. Basically, I want to get a list of all windows that are shown in the window managers application-switching UI (commonly opened when the user presses ALT+TAB). I've never…
Thomi
  • 11,647
  • 13
  • 72
  • 110
6
votes
0 answers

X11: list top level windows

So far I've found two approaches: For each root window (default screen, specific screen, all screens, etc), list each immediate child. Search each immediate child recursively for a window with the WM_STATE property; that window becomes the…
user19087
  • 1,899
  • 1
  • 16
  • 21
4
votes
2 answers

is clipboard implemented by xlib or to be implemented by individual applications

ICCCM defined three selections 1)primary 2)secondary 3)clipboard. But in the xlib, xatom.h had defined only XA_PRIMARY and XA_SECONDARY but clipboard has no such atom. So my doubt is whether clipboard is implemented by xlib or has to be implemented…
santosh kumar
  • 131
  • 2
  • 7
2
votes
1 answer

X11, how to detect I’m the last window/application on the display

I have an x11 display with a windowmanager (sadly not a specific one, could be twm, dtwm, mwm, metacity …) , myApp and other applications with windows. I want to close the display if the other applications are closed and myApp is the only one with…
ts.
  • 23
  • 2
2
votes
2 answers

Confusing _NET_SUPPORTING_WM_CHECK

I am trying to make my window manager conform to the ICCCM specifications. I fully understand the reason for the _NET_SUPPORTING_WM_CHECK atom - this ensures that no invalid information stays whenever the window manager isn't running anymore. What I…
unexist
  • 2,518
  • 23
  • 27
1
vote
1 answer

X11 XM_NAME type is 'UTF-8' rather than STRING_UTF8

I'm looking at some X11 code that uses XmbTextListToTextProperty to set the WM_NAME property, with encoding style XTextStyle. http://tronche.com/gui/x/xlib/ICC/client-to-window-manager/XmbTextListToTextProperty.html suggests XTextStyle means the…
Arnout Engelen
  • 6,709
  • 1
  • 25
  • 36
1
vote
1 answer

Is there a standard way to know whether window is floating or tiled?

I'm modifying taskbar to show only floating or minimized windows. I know that there are ICCCM and EWMH standards. Can I use them to check whether window is floating or tiled? Or is there something else that I can use? I don't want to do it…
kravemir
  • 10,636
  • 17
  • 64
  • 111
0
votes
1 answer

Is reading a X11 Property of type UTF8_STRING guaranteed to end with NULL?

I have the following code: static Atom _NET_WM_NAME = XInternAtom( display, "_NET_WM_NAME", false ); unsigned char* wm_data = NULL; Atom wm_type; int wm_format; unsigned long wm_nitems, wm_bytes; std::string title; int ret = XGetWindowProperty(…
LoPiTaL
  • 2,495
  • 16
  • 23
0
votes
0 answers

X11 virtual desktops: which are visible?

My Python program uses Xlib and Gtk3 and runs in an X-session with the window manager i3. I have 3 (real) monitors in this setup. i3 provides virtual desktops (and many other window managers behave similar here), at least 3 of them, as each monitor…
Robert Siemer
  • 32,405
  • 11
  • 84
  • 94
0
votes
1 answer

custom window manager: Some GTK+ 3 windows receive focus but will not accept mouse clicks

As the title says. I'm writing a custom X11 window manager in Rust, using the xcb library. A specific window -- the "configuration" window for cairo-dock -- will not take button 1 clicks when focused, despite ungrabbing button 1 on that…
user7876637
  • 124
  • 4
  • 11