aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2019-03-04 14:48:59 +0000
committerokan2019-03-04 14:48:59 +0000
commit630b170b88810b2ccb695b6f715b9a415525c926 (patch)
treeea348bb6e8d8403560fa0e0b2f3268285dad7232 /xutil.c
parentd1740203ce9a4cb1c778abc27fba6439a23f855f (diff)
downloadcwm-630b170b88810b2ccb695b6f715b9a415525c926.tar.gz
fix a few misplaced (and misnamed) ewmh root window functions
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/xutil.c b/xutil.c
index 8bbdace..dd42ffe 100644
--- a/xutil.c
+++ b/xutil.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xutil.c,v 1.109 2017/12/19 14:30:53 okan Exp $
+ * $OpenBSD: xutil.c,v 1.110 2019/03/04 14:48:59 okan Exp $
*/
#include <sys/types.h>
@@ -129,6 +129,16 @@ xu_ewmh_net_desktop_geometry(struct screen_ctx *sc)
}
void
+xu_ewmh_net_desktop_viewport(struct screen_ctx *sc)
+{
+ long viewports[2] = {0, 0};
+
+ /* We don't support large desktops, so this is (0, 0). */
+ XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_DESKTOP_VIEWPORT],
+ XA_CARDINAL, 32, PropModeReplace, (unsigned char *)viewports, 2);
+}
+
+void
xu_ewmh_net_workarea(struct screen_ctx *sc)
{
unsigned long *workarea;
@@ -212,17 +222,7 @@ xu_ewmh_get_net_active_window(struct screen_ctx *sc)
}
void
-xu_ewmh_net_wm_desktop_viewport(struct screen_ctx *sc)
-{
- long viewports[2] = {0, 0};
-
- /* We don't support large desktops, so this is (0, 0). */
- XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_DESKTOP_VIEWPORT],
- XA_CARDINAL, 32, PropModeReplace, (unsigned char *)viewports, 2);
-}
-
-void
-xu_ewmh_net_wm_number_of_desktops(struct screen_ctx *sc)
+xu_ewmh_net_number_of_desktops(struct screen_ctx *sc)
{
long ndesks = Conf.ngroups;