Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
f83d61dfe8 | |||
c6180949a7 | |||
1973ab0643 | |||
427053f8d1 | |||
a88e0373ef | |||
aa9f2be24e | |||
c53b29e60b | |||
d6bdd03d91 | |||
1144e98394 | |||
7671d03a90 | |||
bc554d45d8 | |||
ac4caea921 | |||
161f2d921b |
1
.hgtags
1
.hgtags
@ -65,3 +65,4 @@ deaa276abac17ca08fbeb936916e4c8292d293a4 5.5
|
|||||||
e47a47bd3ed42fd3cf023572147b75ebc2adef82 5.6.1
|
e47a47bd3ed42fd3cf023572147b75ebc2adef82 5.6.1
|
||||||
257403d4cd962cac03344a871ea56cc742bae38e 5.7
|
257403d4cd962cac03344a871ea56cc742bae38e 5.7
|
||||||
48c3f87c335d6606e55fbae97267fa6b39ca56e0 5.7.1
|
48c3f87c335d6606e55fbae97267fa6b39ca56e0 5.7.1
|
||||||
|
15761ac5e2f1e9010900f891616a24a22d82f128 5.7.2
|
||||||
|
97
BUGS
Normal file
97
BUGS
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
18:17 < Biolunar> when i change my resolution in dwm (to a smaller one) and then back to the native, the top bar is not repainted. that's since 5.7.2, in 5.6 it worked fine
|
||||||
|
18:19 < Biolunar> is it just happening to me or a (known) bug?
|
||||||
|
18:24 < Biolunar> and in addition, mplayers fullscreen is limited to the small resolution after i changed it back to the native
|
||||||
|
|
||||||
|
reproducible with xrandr -s but not with --output and --mode, strange
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
> enternotify is handled even when the entered window is already focused
|
||||||
|
> (eg moving the mouse to the bar and back, scrolling on the border..)
|
||||||
|
>
|
||||||
|
> focusing might be expensive for some clients (eg dim/light up)
|
||||||
|
>
|
||||||
|
> a possible solution is to modify enternotify:
|
||||||
|
>
|
||||||
|
> + c = wintoclient(ev->window);
|
||||||
|
> if((m = wintomon(ev->window)) && m != selmon) {
|
||||||
|
> unfocus(selmon->sel);
|
||||||
|
> selmon = m;
|
||||||
|
> }
|
||||||
|
> + else if (c == selmon->sel || c == NULL)
|
||||||
|
> + return;
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
> another corner case:
|
||||||
|
|
||||||
|
a tiled client can be resized with mod+right click, but it only works
|
||||||
|
on the main monitor
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
dmenu appears on the monitor where the pointer is and not on selmon
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
yet another corner case:
|
||||||
|
open a terminal, focus another monitor, but without moving the mouse
|
||||||
|
pointer there
|
||||||
|
if there is no client on the other monitor to get the focus, then the
|
||||||
|
terminal will be unfocused but it will accept input
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
Donald Allen reported this:
|
||||||
|
|
||||||
|
starting emacs from dmenu in archlinux results in missing configure of emacs, but mod1-space or mod1-shift-space fix this problem. this problem is new and did not happen in 1.6 xorg servers
|
||||||
|
|
||||||
|
Starting emacs from xterm doesnt show this problem, he uses tag 8 for emacs
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
2009/12/7 Alexandr Krylovskiy <wing_AT_tversu.ru>:
|
||||||
|
> Fullscreen mode with flash applications (youtube, for example) doesn't
|
||||||
|
> work properly neither in tiled nor in floating mode.
|
||||||
|
> Fullscreen window closes immediately after opening.
|
||||||
|
|
||||||
|
This is a known bug (for some curiosity I received the same report via
|
||||||
|
privmail from 2 other people within one week, really strange).
|
||||||
|
The quick fix is commenting out the code in lines 817/818 in hg tip
|
||||||
|
dwm. I cannot confirm this has no side effects (I think it does) and I
|
||||||
|
will address this issue shortly with a real fix.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
SDL seems to not like non-reparenting WMs:
|
||||||
|
|
||||||
|
> I would like to mention SDL problems, however SDL is not crucial to
|
||||||
|
> me anymore; people that really care about it should speak up and
|
||||||
|
> propose dwm / SDL patch or cooperation scheme in that matter.
|
||||||
|
|
||||||
|
Patching SDL, bugging them?
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
voltaic reports this:
|
||||||
|
|
||||||
|
When I use two monitors, one larger in resolution than the other, the
|
||||||
|
bar is drawn using the smaller x-dimension on both screens. I think
|
||||||
|
what's happening is that there are two bars drawn, but the short bar
|
||||||
|
is always on top of the long bar such that I can't see the information
|
||||||
|
under the short bar. If I switch to the small screen, hide the short
|
||||||
|
bar, and then switch to the large screen, the long bar is drawn
|
||||||
|
correctly.
|
||||||
|
|
||||||
|
A similar problem occurs when I have started dwm on a small resolution
|
||||||
|
monitor (laptop screen) and then I switch to a large external display.
|
||||||
|
When I do this, the bar itself is drawn for the original smaller
|
||||||
|
resolution, but the information to be printed on the bar is
|
||||||
|
right-aligned for a longer bar. So what I see is a bar that has the
|
||||||
|
right hand side of it cut-off. See attached screenshot.
|
||||||
|
|
||||||
|
I am using standard options for xrandr such as --output VGA1 --auto, etc.
|
||||||
|
|
||||||
|
---
|
2
LICENSE
2
LICENSE
@ -1,6 +1,6 @@
|
|||||||
MIT/X Consortium License
|
MIT/X Consortium License
|
||||||
|
|
||||||
© 2006-2009 Anselm R Garbe <garbeam at gmail dot com>
|
© 2006-2010 Anselm R Garbe <anselm@garbe.us>
|
||||||
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
|
© 2006-2007 Sander van Dijk <a dot h dot vandijk at gmail dot com>
|
||||||
© 2006-2009 Jukka Salmi <jukka at salmi dot ch>
|
© 2006-2009 Jukka Salmi <jukka at salmi dot ch>
|
||||||
© 2007-2009 Premysl Hruby <dfenze at gmail dot com>
|
© 2007-2009 Premysl Hruby <dfenze at gmail dot com>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
|
|
||||||
/* appearance */
|
/* appearance */
|
||||||
static const char font[] = "-*-*-medium-*-*-*-14-*-*-*-*-*-*-*";
|
static const char font[] = "-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*";
|
||||||
static const char normbordercolor[] = "#cccccc";
|
static const char normbordercolor[] = "#cccccc";
|
||||||
static const char normbgcolor[] = "#cccccc";
|
static const char normbgcolor[] = "#cccccc";
|
||||||
static const char normfgcolor[] = "#000000";
|
static const char normfgcolor[] = "#000000";
|
||||||
|
12
config.mk
12
config.mk
@ -1,5 +1,5 @@
|
|||||||
# dwm version
|
# dwm version
|
||||||
VERSION = 5.7.2
|
VERSION = 5.8
|
||||||
|
|
||||||
# Customize below to fit your system
|
# Customize below to fit your system
|
||||||
|
|
||||||
@ -10,7 +10,7 @@ MANPREFIX = ${PREFIX}/share/man
|
|||||||
X11INC = /usr/X11R6/include
|
X11INC = /usr/X11R6/include
|
||||||
X11LIB = /usr/X11R6/lib
|
X11LIB = /usr/X11R6/lib
|
||||||
|
|
||||||
# Xinerama, un-comment if you want it
|
# Xinerama
|
||||||
XINERAMALIBS = -L${X11LIB} -lXinerama
|
XINERAMALIBS = -L${X11LIB} -lXinerama
|
||||||
XINERAMAFLAGS = -DXINERAMA
|
XINERAMAFLAGS = -DXINERAMA
|
||||||
|
|
||||||
@ -20,10 +20,10 @@ LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS}
|
|||||||
|
|
||||||
# flags
|
# flags
|
||||||
CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
CPPFLAGS = -DVERSION=\"${VERSION}\" ${XINERAMAFLAGS}
|
||||||
#CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
CFLAGS = -g -std=c99 -pedantic -Wall -O0 ${INCS} ${CPPFLAGS}
|
||||||
CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
#CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS}
|
||||||
#LDFLAGS = -g ${LIBS}
|
LDFLAGS = -g ${LIBS}
|
||||||
LDFLAGS = -s ${LIBS}
|
#LDFLAGS = -s ${LIBS}
|
||||||
|
|
||||||
# Solaris
|
# Solaris
|
||||||
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
#CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\"
|
||||||
|
30
dwm.c
30
dwm.c
@ -57,7 +57,8 @@
|
|||||||
/* enums */
|
/* enums */
|
||||||
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
|
enum { CurNormal, CurResize, CurMove, CurLast }; /* cursor */
|
||||||
enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
|
enum { ColBorder, ColFG, ColBG, ColLast }; /* color */
|
||||||
enum { NetSupported, NetWMName, NetLast }; /* EWMH atoms */
|
enum { NetSupported, NetWMName, NetWMState,
|
||||||
|
NetWMFullscreen, NetLast }; /* EWMH atoms */
|
||||||
enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
|
enum { WMProtocols, WMDelete, WMState, WMLast }; /* default atoms */
|
||||||
enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
|
enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
|
||||||
ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
|
ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
|
||||||
@ -161,6 +162,7 @@ static void checkotherwm(void);
|
|||||||
static void cleanup(void);
|
static void cleanup(void);
|
||||||
static void cleanupmon(Monitor *mon);
|
static void cleanupmon(Monitor *mon);
|
||||||
static void clearurgent(Client *c);
|
static void clearurgent(Client *c);
|
||||||
|
static void clientmessage(XEvent *e);
|
||||||
static void configure(Client *c);
|
static void configure(Client *c);
|
||||||
static void configurenotify(XEvent *e);
|
static void configurenotify(XEvent *e);
|
||||||
static void configurerequest(XEvent *e);
|
static void configurerequest(XEvent *e);
|
||||||
@ -249,6 +251,7 @@ static int (*xerrorxlib)(Display *, XErrorEvent *);
|
|||||||
static unsigned int numlockmask = 0;
|
static unsigned int numlockmask = 0;
|
||||||
static void (*handler[LASTEvent]) (XEvent *) = {
|
static void (*handler[LASTEvent]) (XEvent *) = {
|
||||||
[ButtonPress] = buttonpress,
|
[ButtonPress] = buttonpress,
|
||||||
|
[ClientMessage] = clientmessage,
|
||||||
[ConfigureRequest] = configurerequest,
|
[ConfigureRequest] = configurerequest,
|
||||||
[ConfigureNotify] = configurenotify,
|
[ConfigureNotify] = configurenotify,
|
||||||
[DestroyNotify] = destroynotify,
|
[DestroyNotify] = destroynotify,
|
||||||
@ -847,7 +850,8 @@ focusmon(const Arg *arg) {
|
|||||||
|
|
||||||
if(!mons->next)
|
if(!mons->next)
|
||||||
return;
|
return;
|
||||||
m = dirtomon(arg->i);
|
if((m = dirtomon(arg->i)) == selmon)
|
||||||
|
return;
|
||||||
unfocus(selmon->sel);
|
unfocus(selmon->sel);
|
||||||
selmon = m;
|
selmon = m;
|
||||||
focus(NULL);
|
focus(NULL);
|
||||||
@ -1290,6 +1294,20 @@ propertynotify(XEvent *e) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
clientmessage(XEvent *e) {
|
||||||
|
XClientMessageEvent *cme = &e->xclient;
|
||||||
|
|
||||||
|
if(cme->message_type == netatom[NetWMState] && cme->data.l[1] == netatom[NetWMFullscreen]) {
|
||||||
|
if(cme->data.l[0])
|
||||||
|
XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
|
||||||
|
PropModeReplace, (unsigned char*)&netatom[NetWMFullscreen], 1);
|
||||||
|
else
|
||||||
|
XChangeProperty(dpy, cme->window, netatom[NetWMState], XA_ATOM, 32,
|
||||||
|
PropModeReplace, (unsigned char*)0, 0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
quit(const Arg *arg) {
|
quit(const Arg *arg) {
|
||||||
running = False;
|
running = False;
|
||||||
@ -1388,12 +1406,12 @@ restack(Monitor *m) {
|
|||||||
void
|
void
|
||||||
run(void) {
|
run(void) {
|
||||||
XEvent ev;
|
XEvent ev;
|
||||||
|
|
||||||
/* main event loop */
|
/* main event loop */
|
||||||
XSync(dpy, False);
|
XSync(dpy, False);
|
||||||
while(running && !XNextEvent(dpy, &ev))
|
while(running && !XNextEvent(dpy, &ev)) {
|
||||||
if(handler[ev.type])
|
if(handler[ev.type])
|
||||||
handler[ev.type](&ev); /* call handler */
|
handler[ev.type](&ev); /* call handler */
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
@ -1493,6 +1511,8 @@ setup(void) {
|
|||||||
wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False);
|
wmatom[WMState] = XInternAtom(dpy, "WM_STATE", False);
|
||||||
netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
|
netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
|
||||||
netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
|
netatom[NetWMName] = XInternAtom(dpy, "_NET_WM_NAME", False);
|
||||||
|
netatom[NetWMState] = XInternAtom(dpy, "_NET_WM_STATE", False);
|
||||||
|
netatom[NetWMFullscreen] = XInternAtom(dpy, "_NET_WM_STATE_FULLSCREEN", False);
|
||||||
/* init cursors */
|
/* init cursors */
|
||||||
cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
|
cursor[CurNormal] = XCreateFontCursor(dpy, XC_left_ptr);
|
||||||
cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
|
cursor[CurResize] = XCreateFontCursor(dpy, XC_sizing);
|
||||||
@ -2001,7 +2021,7 @@ zoom(const Arg *arg) {
|
|||||||
int
|
int
|
||||||
main(int argc, char *argv[]) {
|
main(int argc, char *argv[]) {
|
||||||
if(argc == 2 && !strcmp("-v", argv[1]))
|
if(argc == 2 && !strcmp("-v", argv[1]))
|
||||||
die("dwm-"VERSION", © 2006-2009 dwm engineers, see LICENSE for details\n");
|
die("dwm-"VERSION", © 2006-2010 dwm engineers, see LICENSE for details\n");
|
||||||
else if(argc != 1)
|
else if(argc != 1)
|
||||||
die("usage: dwm [-v]\n");
|
die("usage: dwm [-v]\n");
|
||||||
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
|
if(!setlocale(LC_CTYPE, "") || !XSupportsLocale())
|
||||||
|
Reference in New Issue
Block a user