all repos — openbox @ 874d0ea446daac149e6b4b572f7e7196a855c8b9

openbox fork - make it a bit more like ryudo

comment typo and function spacing fix
Dana Jansens danakj@orodu.net
commit

874d0ea446daac149e6b4b572f7e7196a855c8b9

parent

0a3cfdfcb956024639a05549a50586e3d826b42e

1 files changed, 17 insertions(+), 1 deletions(-)

jump to
M src/Screen.ccsrc/Screen.cc

@@ -847,6 +847,7 @@

return fs; } + void BScreen::setSloppyFocus(bool b) { resource.sloppy_focus = b; ostrstream s;

@@ -857,6 +858,7 @@ (resource.auto_raise ? "AutoRaiseSloppyFocus" : "SloppyFocus")

: "ClickToFocus")); s.rdbuf()->freeze(0); } + void BScreen::setAutoRaise(bool a) { resource.auto_raise = a;

@@ -868,6 +870,7 @@ (resource.auto_raise ? "AutoRaiseSloppyFocus" : "SloppyFocus")

: "ClickToFocus")); s.rdbuf()->freeze(0); } + void BScreen::setImageDither(bool d) { resource.image_dither = d;

@@ -877,6 +880,7 @@ config.setValue(s.str(), resource.image_dither);

s.rdbuf()->freeze(0); } + void BScreen::setOpaqueMove(bool o) { resource.opaque_move = o; ostrstream s;

@@ -884,6 +888,7 @@ s << "session.screen" << getScreenNumber() << ".opaqueMove" << ends;

config.setValue(s.str(), resource.opaque_move); s.rdbuf()->freeze(0); } + void BScreen::setFullMax(bool f) { resource.full_max = f;

@@ -893,6 +898,7 @@ config.setValue(s.str(), resource.full_max);

s.rdbuf()->freeze(0); } + void BScreen::setFocusNew(bool f) { resource.focus_new = f; ostrstream s;

@@ -900,6 +906,7 @@ s << "session.screen" << getScreenNumber() << ".focusNewWindows" << ends;

config.setValue(s.str(), resource.focus_new); s.rdbuf()->freeze(0); } + void BScreen::setFocusLast(bool f) { resource.focus_last = f;

@@ -909,6 +916,7 @@ config.setValue(s.str(), resource.focus_last);

s.rdbuf()->freeze(0); } + void BScreen::setWindowZones(int z) { resource.zones = z; ostrstream s;

@@ -916,6 +924,7 @@ s << "session.screen" << getScreenNumber() << ".windowZones" << ends;

config.setValue(s.str(), resource.zones); s.rdbuf()->freeze(0); } + void BScreen::setWorkspaceCount(int w) { resource.workspaces = w;

@@ -925,6 +934,7 @@ config.setValue(s.str(), resource.workspaces);

s.rdbuf()->freeze(0); } + void BScreen::setPlacementPolicy(int p) { resource.placement_policy = p; ostrstream s;

@@ -941,6 +951,7 @@ config.setValue(s.str(), placement);

s.rdbuf()->freeze(0); } + void BScreen::setEdgeSnapThreshold(int t) { resource.edge_snap_threshold = t; ostrstream s;

@@ -948,6 +959,7 @@ s << "session.screen" << getScreenNumber() << ".edgeSnapThreshold" << ends;

config.setValue(s.str(), resource.edge_snap_threshold); s.rdbuf()->freeze(0); } + void BScreen::setRowPlacementDirection(int d) { resource.row_direction = d;

@@ -960,6 +972,7 @@ "LeftToRight" : "RightToLeft");

s.rdbuf()->freeze(0); } + void BScreen::setColPlacementDirection(int d) { resource.col_direction = d; ostrstream s;

@@ -970,6 +983,7 @@ resource.col_direction == TopBottom ?

"TopToBottom" : "BottomToTop"); s.rdbuf()->freeze(0); } + void BScreen::setRootCommand(const char *cmd) { if (resource.root_command != NULL)

@@ -980,8 +994,10 @@ else

resource.root_command = NULL; // this doesn't save to the Resources config because it can't be changed // inside Openbox, and this way we dont add an empty command which would over- - // ride the styles commend when none has been specified + // ride the styles command when none has been specified } + + #ifdef HAVE_STRFTIME void BScreen::setStrftimeFormat(const char *f) { if (resource.strftime_format != NULL)