This website works better with JavaScript.
Home
Explore
Help
Sign In
gmarx
/
dwm-macbookair
mirror of
https://github.com/gmarxcc/dwm-macbookair
Watch
1
Star
1
Fork
0
Code
Issues
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
renamed WM_PROTOCOL_DELWIN into PROTODELWIN
main
arg@10ksloc.org
18 years ago
parent
ab7a11c0c7
commit
080a38d62d
3 changed files
with
3 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
client.c
+1
-1
dwm.h
+1
-1
main.c
+ 1
- 1
client.c
View File
@ -191,7 +191,7 @@ killclient(Arg *arg)
{
if
(
!
sel
)
return
;
if
(
sel
-
>
proto
&
WM_
PROTO
COL_
DELWIN
)
if
(
sel
-
>
proto
&
PROTODELWIN
)
sendevent
(
sel
-
>
win
,
wmatom
[
WMProtocols
]
,
wmatom
[
WMDelete
]
)
;
else
XKillClient
(
dpy
,
sel
-
>
win
)
;
+ 1
- 1
dwm.h
View File
@ -9,7 +9,7 @@
/* mask shorthands, used in event.c and client.c */
#
define BUTTONMASK (ButtonPressMask | ButtonReleaseMask)
#
define MOUSEMASK (BUTTONMASK | PointerMotionMask)
#
define
WM_
PROTO
COL_
DELWIN 1
#
define PROTODELWIN
1
typedef
union
Arg
Arg
;
typedef
struct
Client
Client
;
+ 1
- 1
main.c
View File
@ -111,7 +111,7 @@ getproto(Window w)
}
for
(
i
=
0
;
i
<
res
;
i
+
+
)
{
if
(
protocols
[
i
]
=
=
wmatom
[
WMDelete
]
)
protos
|
=
WM_
PROTO
COL_
DELWIN
;
protos
|
=
PROTODELWIN
;
}
free
(
(
char
*
)
protocols
)
;
return
protos
;
Write
Preview
Loading…
Cancel
Save