more style nits and wrapping
This commit is contained in:
parent
f091741024
commit
85b6a48da7
@ -15,7 +15,7 @@
|
|||||||
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
||||||
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*
|
*
|
||||||
* $OpenBSD: client.c,v 1.178 2014/09/08 20:32:40 okan Exp $
|
* $OpenBSD: client.c,v 1.179 2014/09/08 20:37:02 okan Exp $
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
@ -606,14 +606,14 @@ client_setname(struct client_ctx *cc)
|
|||||||
if (!xu_getstrprop(cc->win, XA_WM_NAME, &newname))
|
if (!xu_getstrprop(cc->win, XA_WM_NAME, &newname))
|
||||||
newname = xstrdup("");
|
newname = xstrdup("");
|
||||||
|
|
||||||
TAILQ_FOREACH(wn, &cc->nameq, entry)
|
TAILQ_FOREACH(wn, &cc->nameq, entry) {
|
||||||
if (strcmp(wn->name, newname) == 0) {
|
if (strcmp(wn->name, newname) == 0) {
|
||||||
/* Move to the last since we got a hit. */
|
/* Move to the last since we got a hit. */
|
||||||
TAILQ_REMOVE(&cc->nameq, wn, entry);
|
TAILQ_REMOVE(&cc->nameq, wn, entry);
|
||||||
TAILQ_INSERT_TAIL(&cc->nameq, wn, entry);
|
TAILQ_INSERT_TAIL(&cc->nameq, wn, entry);
|
||||||
goto match;
|
goto match;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
wn = xmalloc(sizeof(*wn));
|
wn = xmalloc(sizeof(*wn));
|
||||||
wn->name = newname;
|
wn->name = newname;
|
||||||
TAILQ_INSERT_TAIL(&cc->nameq, wn, entry);
|
TAILQ_INSERT_TAIL(&cc->nameq, wn, entry);
|
||||||
@ -659,7 +659,8 @@ client_cycle(struct screen_ctx *sc, int flags)
|
|||||||
|
|
||||||
/* Only cycle visible and non-ignored windows. */
|
/* Only cycle visible and non-ignored windows. */
|
||||||
if ((newcc->flags & (CLIENT_HIDDEN|CLIENT_IGNORE))
|
if ((newcc->flags & (CLIENT_HIDDEN|CLIENT_IGNORE))
|
||||||
|| ((flags & CWM_INGROUP) && (newcc->group != oldcc->group)))
|
|| ((flags & CWM_INGROUP) &&
|
||||||
|
(newcc->group != oldcc->group)))
|
||||||
again = 1;
|
again = 1;
|
||||||
|
|
||||||
/* Is oldcc the only non-hidden window? */
|
/* Is oldcc the only non-hidden window? */
|
||||||
@ -872,12 +873,13 @@ client_mwm_hints(struct client_ctx *cc)
|
|||||||
struct mwm_hints *mwmh;
|
struct mwm_hints *mwmh;
|
||||||
|
|
||||||
if (xu_getprop(cc->win, cwmh[_MOTIF_WM_HINTS], cwmh[_MOTIF_WM_HINTS],
|
if (xu_getprop(cc->win, cwmh[_MOTIF_WM_HINTS], cwmh[_MOTIF_WM_HINTS],
|
||||||
PROP_MWM_HINTS_ELEMENTS, (unsigned char **)&mwmh) == MWM_NUMHINTS)
|
PROP_MWM_HINTS_ELEMENTS, (unsigned char **)&mwmh) == MWM_NUMHINTS) {
|
||||||
if (mwmh->flags & MWM_HINTS_DECORATIONS &&
|
if (mwmh->flags & MWM_HINTS_DECORATIONS &&
|
||||||
!(mwmh->decorations & MWM_DECOR_ALL) &&
|
!(mwmh->decorations & MWM_DECOR_ALL) &&
|
||||||
!(mwmh->decorations & MWM_DECOR_BORDER))
|
!(mwmh->decorations & MWM_DECOR_BORDER))
|
||||||
cc->bwidth = 0;
|
cc->bwidth = 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
client_transient(struct client_ctx *cc)
|
client_transient(struct client_ctx *cc)
|
||||||
|
Loading…
Reference in New Issue
Block a user