DWM DWM cannot manage Opera?

I want to fix the startup window position of Opera. So I modify the code in dwm.c:
Code:
void manage(Window w, XWindowAttributes *wa) {}
as below,
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;
}
...
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.
 
Last edited by a moderator:
The version of FreeBSD is irrelevant in this respect. Positioning windows is a bit of a hit and miss unfortunately. Some programs (like Opera) store their own position regardless of what the window manager tells them.
 
The version of FreeBSD is irrelevant in this respect. Positioning windows is a bit of a hit and miss unfortunately. Some programs (like Opera) store their own position regardless of what the window manager tells them.
Yeah, it is in ~/.opera/operaprefs.ini.

Thanks!
 
Back
Top