about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-19 14:38:09 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-19 14:38:09 +0100
commitddc79603f937c9019c483cd2b41a4eaa2ea34240 (patch)
tree61fcb73b466dca3832e25e3da625ebd6613b7258
parentdee5ea23358ec0a9684265dc8cb1d2e4d56e9b84 (diff)
downloaddwm-ddc79603f937c9019c483cd2b41a4eaa2ea34240.tar.gz
replaced XSetBorder.../focus()
-rw-r--r--event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/event.c b/event.c
index 20c1533..a5e75ca 100644
--- a/event.c
+++ b/event.c
@@ -236,7 +236,7 @@ enternotify(XEvent *e) {
 		issel = True;
 		XSetInputFocus(dpy, root, RevertToPointerRoot, CurrentTime);
 		if(sel)
-			XSetWindowBorder(dpy, sel->win, dc.sel[ColBorder]);
+			focus(sel);
 	}
 }
 
ame/functionaltests/test_message.c?id=a5cf83d2595c41fda72f67284b101f509524e659'>^
a48b9fce ^
373f47c7 ^

7f98e013 ^
373f47c7 ^



d9f5a2bd ^
373f47c7 ^
6303e0e2 ^






7f98e013 ^
6303e0e2 ^

7f98e013 ^
6303e0e2 ^





1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59















                          
                   



                                                       
                                                                  







                                                     
                                     
 
                   

               
                                                                                                        



                                       
                                                                                            
 






                                             
                                                            

               
                                                                                                        





                                                                                   
#include <glib.h>
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <cmocka.h>
#include <stdlib.h>
#include <string.h>

#include <stabber.h>
#include <expect.h>

#include "proftest.h"

void
message_send(void **state)
{
    prof_connect();

    prof_input("/msg somejid@someserver.com Hi there");

    assert_true(stbbr_received(
        "<message id='*' to='somejid@someserver.com' type='chat'>"
            "<body>Hi there</body>"
        "</message>"
    ));

    assert_true(prof_output_regex("me: .+Hi there"));
}

void
message_receive_console(void **state)
{
    prof_connect();

    stbbr_send(
        "<message id='message1' to='stabber@localhost' from='someuser@chatserv.org/laptop' type='chat'>"
            "<body>How are you?</body>"
        "</message>"
    );

    assert_true(prof_output_exact("<< chat message: someuser@chatserv.org/laptop (win 2)"));
}

void
message_receive_chatwin(void **state)
{
    prof_connect();

    prof_input("/msg someuser@chatserv.org");
    assert_true(prof_output_exact("someuser@chatserv.org"));

    stbbr_send(
        "<message id='message1' to='stabber@localhost' from='someuser@chatserv.org/laptop' type='chat'>"
            "<body>How are you?</body>"
        "</message>"
    );

    assert_true(prof_output_regex("someuser@chatserv.org/laptop: .+How are you?"));
}