changed added specifik window parameter to sendToWorkspace
This commit is contained in:
parent
25a9c7b57a
commit
a4373ada50
2 changed files with 15 additions and 15 deletions
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Screen.cc,v 1.56 2002/07/20 09:32:34 fluxgen Exp $
|
// $Id: Screen.cc,v 1.57 2002/07/23 13:47:05 fluxgen Exp $
|
||||||
|
|
||||||
//use GNU extensions
|
//use GNU extensions
|
||||||
#ifndef _GNU_SOURCE
|
#ifndef _GNU_SOURCE
|
||||||
|
@ -823,16 +823,16 @@ void BScreen::changeWorkspaceID(unsigned int id) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void BScreen::sendToWorkspace(unsigned int id, bool changeWS) {
|
void BScreen::sendToWorkspace(unsigned int id, FluxboxWindow *win, bool changeWS) {
|
||||||
FluxboxWindow *win;
|
|
||||||
if (! current_workspace || id >= workspacesList.size())
|
if (! current_workspace || id >= workspacesList.size())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (!win)
|
||||||
|
win = fluxbox->getFocusedWindow();
|
||||||
|
|
||||||
if (id != current_workspace->workspaceID()) {
|
if (id != current_workspace->workspaceID()) {
|
||||||
XSync(fluxbox->getXDisplay(), True);
|
XSync(fluxbox->getXDisplay(), True);
|
||||||
|
|
||||||
win = fluxbox->getFocusedWindow();
|
|
||||||
|
|
||||||
if (win && win->getScreen() == this &&
|
if (win && win->getScreen() == this &&
|
||||||
(! win->isStuck())) {
|
(! win->isStuck())) {
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||||
// DEALINGS IN THE SOFTWARE.
|
// DEALINGS IN THE SOFTWARE.
|
||||||
|
|
||||||
// $Id: Screen.hh,v 1.37 2002/05/22 00:36:56 fluxgen Exp $
|
// $Id: Screen.hh,v 1.38 2002/07/23 13:47:05 fluxgen Exp $
|
||||||
|
|
||||||
#ifndef SCREEN_HH
|
#ifndef SCREEN_HH
|
||||||
#define SCREEN_HH
|
#define SCREEN_HH
|
||||||
|
@ -91,7 +91,7 @@ public:
|
||||||
|
|
||||||
inline const GC &getOpGC() const { return theme->getOpGC(); }
|
inline const GC &getOpGC() const { return theme->getOpGC(); }
|
||||||
|
|
||||||
inline const BColor *getBorderColor(void) const { return &theme->getBorderColor(); }
|
inline const FbTk::Color *getBorderColor(void) const { return &theme->getBorderColor(); }
|
||||||
inline BImageControl *getImageControl(void) { return image_control; }
|
inline BImageControl *getImageControl(void) { return image_control; }
|
||||||
inline Rootmenu *getRootmenu(void) { return rootmenu; }
|
inline Rootmenu *getRootmenu(void) { return rootmenu; }
|
||||||
inline const std::string &getRootCommand(void ) const { return *resource.rootcommand; }
|
inline const std::string &getRootCommand(void ) const { return *resource.rootcommand; }
|
||||||
|
@ -210,14 +210,14 @@ public:
|
||||||
void removeWorkspaceNames(void);
|
void removeWorkspaceNames(void);
|
||||||
void updateWorkspaceNamesAtom(void);
|
void updateWorkspaceNamesAtom(void);
|
||||||
|
|
||||||
void addWorkspaceName(char *);
|
void addWorkspaceName(const char *name);
|
||||||
void addNetizen(Netizen *);
|
void addNetizen(Netizen *net);
|
||||||
void removeNetizen(Window);
|
void removeNetizen(Window win);
|
||||||
void addIcon(FluxboxWindow *);
|
void addIcon(FluxboxWindow *win);
|
||||||
void removeIcon(FluxboxWindow *);
|
void removeIcon(FluxboxWindow *win);
|
||||||
void getNameOfWorkspace(unsigned int workspace, char **name);
|
void getNameOfWorkspace(unsigned int workspace, char **name);
|
||||||
void changeWorkspaceID(unsigned int);
|
void changeWorkspaceID(unsigned int);
|
||||||
void sendToWorkspace(unsigned int workspace, bool changeworkspace=true);
|
void sendToWorkspace(unsigned int workspace, FluxboxWindow *win=0, bool changeworkspace=true);
|
||||||
void raiseWindows(Window *workspace_stack, int num);
|
void raiseWindows(Window *workspace_stack, int num);
|
||||||
void reassociateWindow(FluxboxWindow *window, unsigned int workspace_id, bool ignore_sticky);
|
void reassociateWindow(FluxboxWindow *window, unsigned int workspace_id, bool ignore_sticky);
|
||||||
void prevFocus(int = 0);
|
void prevFocus(int = 0);
|
||||||
|
@ -344,8 +344,8 @@ private:
|
||||||
protected:
|
protected:
|
||||||
bool parseMenuFile(std::ifstream &, Rootmenu *, int&);
|
bool parseMenuFile(std::ifstream &, Rootmenu *, int&);
|
||||||
|
|
||||||
bool readDatabaseTexture(char *, char *, BTexture *, unsigned long);
|
bool readDatabaseTexture(char *, char *, FbTk::Texture *, unsigned long);
|
||||||
bool readDatabaseColor(char *, char *, BColor *, unsigned long);
|
bool readDatabaseColor(char *, char *, FbTk::Color *, unsigned long);
|
||||||
|
|
||||||
void readDatabaseFontSet(char *, char *, XFontSet *);
|
void readDatabaseFontSet(char *, char *, XFontSet *);
|
||||||
XFontSet createFontSet(char *);
|
XFontSet createFontSet(char *);
|
||||||
|
|
Loading…
Reference in a new issue