aboutsummaryrefslogtreecommitdiffstats
path: root/xevents.c
diff options
context:
space:
mode:
authorokan2014-02-03 20:20:39 +0000
committerokan2014-02-03 20:20:39 +0000
commit0591be5c2b59055e9d6b193f634e9bc16bd1e999 (patch)
tree403655c8534ddc003bbe2b6d16085ddc2a91471e /xevents.c
parentf21abfc55cc09949eb90c5fa93a629d04b204a6a (diff)
downloadcwm-0591be5c2b59055e9d6b193f634e9bc16bd1e999.tar.gz
Move redundant bits from screen_init (while dealing with existing
clients) directly into client_init, performing the X roundtrip only once. With the previous change in maprequest, this moves decision making into one place for creating new clients.
Diffstat (limited to '')
-rw-r--r--xevents.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xevents.c b/xevents.c
index 82dfedd..c9c48d1 100644
--- a/xevents.c
+++ b/xevents.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: xevents.c,v 1.110 2014/02/02 21:34:05 okan Exp $
+ * $OpenBSD: xevents.c,v 1.111 2014/02/03 20:20:39 okan Exp $
*/
/*
@@ -80,7 +80,7 @@ xev_handle_maprequest(XEvent *ee)
client_ptrsave(old_cc);
if ((cc = client_find(e->window)) == NULL)
- cc = client_init(e->window, NULL, 1);
+ cc = client_init(e->window, NULL);
if ((cc != NULL) && ((cc->flags & CLIENT_IGNORE) == 0))
client_ptrwarp(cc);