DWM DWM cannot manage Opera?

sw2wolf

Well-Known Member

Reaction score: 1
Messages: 251

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:

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,708
Messages: 39,306

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.
 
OP
S

sw2wolf

Well-Known Member

Reaction score: 1
Messages: 251

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!
 
Top