all repos — openbox @ 0771964c0f3d14992d7d798c317e5e7dde73bb43

openbox fork - make it a bit more like ryudo

set the max settings properly, was setting max_vert for both.
make sure the desktop property is set when per-app settings change it
Dana Jansens danakj@orodu.net
commit

0771964c0f3d14992d7d798c317e5e7dde73bb43

parent

c1a124fcf287f3fe87e623f906701b7d5b21c5f0

1 files changed, 4 insertions(+), 5 deletions(-)

jump to
M openbox/client.copenbox/client.c

@@ -683,7 +683,7 @@

if (settings->max_vert != -1) self->max_vert = !!settings->max_vert; if (settings->max_horz != -1) - self->max_vert = !!settings->max_horz; + self->max_horz = !!settings->max_horz; if (settings->fullscreen != -1) self->fullscreen = !!settings->fullscreen;

@@ -1018,10 +1018,6 @@ } else

/* defaults to the current desktop */ self->desktop = screen_desktop; } - } - if (self->desktop != d) { - /* set the desktop hint, to make sure that it always exists */ - PROP_SET32(self->window, net_wm_desktop, cardinal, self->desktop); } }

@@ -2172,6 +2168,9 @@ ox = self->area.x;

oy = self->area.y; self->area.x = x; self->area.y = y; + + /* set the desktop hint, to make sure that it always exists */ + PROP_SET32(self->window, net_wm_desktop, cardinal, self->desktop); /* these are in a carefully crafted order.. */