Questions tagged [ewmh]

23 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
1 answer

Preventing window overlap in GTK

I've got a Python/Linux application that displays bits of info I need in a GTK window. For the purposes of this discussion, it should behave exactly like a dock - exists on all virtual desktops, and maximized windows do not overlap it. The first…
Josh
  • 179
  • 1
  • 9
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
5
votes
1 answer

How to draw titlebar with XCB

I am working on a simple window manager in c with libxcb and I am trying to decorate a window with a titlebar, icon and min/max/close buttons. I test my wm in Xephyr. I can spawn a new xterm window, move it around and resize it. But now I would like…
Carlito
  • 805
  • 10
  • 20
5
votes
2 answers

How do I provide the _NET_WM_STATE_FULLSCREEN hint with xcb?

I'm trying to write a fullscreen application with xcb for my own edification and I'm having trouble with the above. I've found a couple pieces of code that do this using Xlib, but none with xcb. I've found the xcb_ewmh_connection_t structure and…
cdbfoster
  • 339
  • 4
  • 13
5
votes
1 answer

Remove titlebar in Gnome

I have a window in Gnome whose titlebar I would like to remove. This was easy in FVWM2: I just set the window style to include NoTitle. In Gnome there does not appear to be a similar option. I recently learned to use wmctrl to modify…
dg99
  • 5,456
  • 3
  • 37
  • 49
4
votes
0 answers

Getting WM name through X11 without EWMH?

I'm writing a program that needs to detect the name of the running Window Manager (for example, Compiz) on a Linux host running X11. I'm currently relying on the Extended Window Manager Hints specification, which allows me to query…
yossarian
  • 1,537
  • 14
  • 21
3
votes
0 answers

Manipulating X11 window menu in a WM-agnostic way

Motif-based window managers (Mwm, Dtwm, 4Dwm, 5Dwm) allow custom menu items (with the corresponding callbacks) to be added to the application's window menu (see the screenshot, gist available here). The application itself is also required to link…
Bass
  • 4,977
  • 2
  • 36
  • 82
3
votes
2 answers

Can't change _NET_WM_STRUT_PARTIAL property

I want to reserve some space on the screen for my Gtk application written in Python. I've wrote this function: import xcb, xcb.xproto import struct def reserve_space(xid, data): connection = xcb.connect() atom_cookie =…
2
votes
2 answers

workspaces aka desktops in Java

Has there been any advancement in discovering and/or setting which desktop/workspace my application is on (under Linux/Solaris of course)?
brad12s
  • 113
  • 1
  • 3
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

Can I use _NET_WM_WINDOW_TYPE_DOCK EWHM extension in openbox?

Openbox is stated to be EWMH compliant here. I want to use this compliance layer to implement a decoration-less window, as proposed on this question's best answer. As such, I am trying to build a simple window using python and Xlib that uses the…
la Fleur
  • 426
  • 3
  • 11
1
vote
1 answer

No event received when X11 client sets _NET_WM_STATE_DEMANDS_ATTENTION

I'm building a taskbar for an X11 desktop and so far I've been successful in detecting new and removed windows and changes to window titles and icons. However, despite setting every event mask I can think of on the client windows, I've been unable…
Coda Highland
  • 125
  • 10
1
vote
1 answer

How to control X11 app level window stacking?

Is there any way to have 2 windows in X11, with the following criteria: Second window always stays on top of the first one Second window doesn't stay on top of other applications' windows No flickering when switching windows Both windows need to be…
martin
  • 1,007
  • 2
  • 16
  • 32
1
vote
2 answers

Get WId of active window with XCB

What would be the proper way to get the active window (the one with input focus) with XCB? reply = xcb_get_input_focus_reply(connection, xcb_get_input_focus(connection), nullptr); std::cout << "WId: " << reply->focus; This seems to be work…
Damir Porobic
  • 681
  • 1
  • 8
  • 21
1
2