about summary refs log tree commit diff stats
path: root/client.c
diff options
context:
space:
mode:
authorarg@10ksloc.org <unknown>2006-08-02 11:28:27 +0200
committerarg@10ksloc.org <unknown>2006-08-02 11:28:27 +0200
commit1d852259526e41ebaad7325ee42c118b1cc12f71 (patch)
tree9d9992c1595caf5e9d190dd404c091437677362c /client.c
parent3af6434085aee75bd90e22aee95419dc0ae0b969 (diff)
downloaddwm-1d852259526e41ebaad7325ee42c118b1cc12f71.tar.gz
implemented focus on enterwindow on titlebars
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 434a93b..6f6ed99 100644
--- a/client.c
+++ b/client.c
@@ -230,7 +230,7 @@ manage(Window w, XWindowAttributes *wa)
 	XGetTransientForHint(dpy, c->win, &trans);
 	twa.override_redirect = 1;
 	twa.background_pixmap = ParentRelative;
-	twa.event_mask = ExposureMask;
+	twa.event_mask = ExposureMask | EnterWindowMask;
 
 	c->title = XCreateWindow(dpy, root, c->tx, c->ty, c->tw, c->th,
 			0, DefaultDepth(dpy, screen), CopyFromParent,
mmitter elioat <elioat@tilde.institute> 2024-08-14 22:24:17 -0400 *' href='/elioat/tour/commit/js/lut-cam/index.html?id=91851865712e188650ea11a046c8de2c22674548'>9185186 ^
9f6bfa0 ^


9185186 ^
9f6bfa0 ^
9185186 ^

9f6bfa0 ^
9185186 ^


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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100














                                                                          
                                    

























                                    




















                                                   









                                              
                                           





                                                        

                                                

                                                
                                                    



                   


                                                                                                                    
                                                      
                                                                        

      
 


                              
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>LUT Cam</title>
    <style>
        body, html {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: beige;
        }
        #canvas {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: none;
        }
        #controls {
            position: absolute;
            bottom: 10px;
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
        }
        #lut-container {
            position: absolute;
            top: 10px;
            right: 10px;
        }
        button, select {
            padding: 10px;
            font-size: 18px;
            cursor: pointer;
        }

        button, select {
            border: none;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        button:hover, button:focus {
            outline: none; 
        }

        button.capture {
            background-color: teal;
            color: #FFFFFF;
        }

        button.capture:disabled {
            background-color: #ccc;
            color: #5c5c5c;
        }

    </style>
</head>
<body>

<canvas id="canvas"></canvas>

<div id="lut-container">
    <select id="lut-select" disabled>
        <option value="none">None</option>
        <option value="lut1">Inverted</option>
        <option value="lut2">Vapor</option>
        <option value="lut3">Subtle Cool Tone</option>
        <option value="lut4">Subtle Warm Tone</option>
        <option value="lut5">Subtle Green Tone</option>
        <option value="lut6">Subtle Yellow Tone</option>
        <option value="lut7">Desaturated</option>
        <option value="lut8">Saturated</option>
        <option value="lut9">Cool Tint</option>
        <option value="lut10">Warm Tint</option>
        <option value="lut11">Greyscale</option>
        <option value="lut12">Sepia</option>
        <option value="lut13">High Contrast</option>
    </select>
</div>

<div id="controls">
    <div id="focus-container">
        <input style="display: none;" type="range" id="focus-slider" min="0" max="100" step="1" value="50" disabled>
    </div>
    <button id="toggle-camera">Turn Camera On</button>
    <button id="capture" disabled class="capture">Capture Image</button>
</div>


<script src="lut.js"></script>
</body>
</html>