]> git.sur5r.net Git - i3/i3/commit - src/move.c
Handle the EWMH atom _NET_WM_DESKTOP. 2162/head
authorIngo Bürk <ingo.buerk@tngtech.com>
Mon, 11 Jan 2016 19:53:26 +0000 (20:53 +0100)
committerIngo Bürk <ingo.buerk@tngtech.com>
Mon, 18 Jan 2016 11:13:36 +0000 (12:13 +0100)
commit328035fb7e98630862ae8b43088631f62b807c77
tree5c66a0b03987631789a7122d90985035fd075a1d
parent9a4dbf366bcfce43e50185f05ed8c3ad85ac8ba1
Handle the EWMH atom _NET_WM_DESKTOP.

We already claim _NET_WM_DESKTOP support in _NET_SUPPORTED since around 2009,
but haven't actually done anything with it. However, especially pagers like
gnome-panel rely on this property to be updated and many tools, like GTK, want
to use the corresponding client messages to make a window sticky, move it
around etc.

This patch implements full support according to the EWMH spec. This means:

* We set the property on all windows when managing it.
* We keep the property updated on all windows at all times.
* We read and respect the property upon managing a window if it was set before
  mapping the window.
* We react to client messages for it.
* We remove the property on withdrawn windows.

Note that the special value 0xFFFFFFFF, according to the spec, means that the
window shall be shown on all workspaces. We do this by making it sticky and
float it. This shows it on all workspaces at least on the output it is on.

Furthermore, the spec gives us the freedom to ignore _NET_WM_DESKTOP when
managing a window if we have good reason to. In our case, we give window
swallowing a higher priority since the user would likely expect that and we
want to keep placeholder windows only around for as long as we have to.
However, we do prioritize this property over, for example, startup
notifications.

fixes #2153
fixes #1507
fixes #938
12 files changed:
include/data.h
include/ewmh.h
include/workspace.h
src/commands.c
src/con.c
src/ewmh.c
src/handlers.c
src/manage.c
src/move.c
src/workspace.c
testcases/t/253-multiple-net-wm-state-atoms.t
testcases/t/529-net-wm-desktop.t [new file with mode: 0644]