I want to fix the startup window position of Opera. So I modify the code in dwm.c:
as below,
DWB can be controlled perfectly but Opera does not respect the window manager and always appears at its own position when started.
BTW, in 9.1 Opera remembers its last time window position and size by itself very well. But in 9.3, it does not work now.
Regards.
Code:
void manage(Window w, XWindowAttributes *wa) {}
Code:
...
if(strcasestr(c->name,"opera") || strcasestr(c->name,"dwb")) {
c->x = c->oldx = 0;
c->y = c->oldy = 360;
}
else {
c->x = c->oldx = wa->x;
c->y = c->oldy = wa->y;
}
...
BTW, in 9.1 Opera remembers its last time window position and size by itself very well. But in 9.3, it does not work now.
Regards.
Last edited by a moderator: