fixed size_t issue with prevWorkspace, minor cosmetic changes to Screen.hh
This commit is contained in:
parent
f1a6c9100b
commit
a6551852bb
3 changed files with 9 additions and 6 deletions
|
@ -1,5 +1,8 @@
|
|||
(Format: Year/Month/Day)
|
||||
Changes for 0.9.16:
|
||||
*06/04/11:
|
||||
* Fix calculation of prevWorkspace (Mathias)
|
||||
Screen.cc
|
||||
*06/04/09:
|
||||
* Fix label background update with external tabs (Simon)
|
||||
FbWinFrame.cc
|
||||
|
|
|
@ -1913,7 +1913,7 @@ void BScreen::nextWorkspace(const int delta) {
|
|||
Goes to the workspace "left" of the current
|
||||
*/
|
||||
void BScreen::prevWorkspace(const int delta) {
|
||||
changeWorkspaceID( (currentWorkspaceID() - delta + numberOfWorkspaces()) % numberOfWorkspaces());
|
||||
changeWorkspaceID( (static_cast<signed>(numberOfWorkspaces()) + currentWorkspaceID() - (delta % numberOfWorkspaces())) % numberOfWorkspaces());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -170,15 +170,15 @@ public:
|
|||
/// @return true if dock app was added, else false
|
||||
bool addKdeDockapp(Window win);
|
||||
|
||||
inline unsigned int width() const { return rootWindow().width(); }
|
||||
inline unsigned int height() const { return rootWindow().height(); }
|
||||
inline int screenNumber() const { return rootWindow().screenNumber(); }
|
||||
unsigned int width() const { return rootWindow().width(); }
|
||||
unsigned int height() const { return rootWindow().height(); }
|
||||
int screenNumber() const { return rootWindow().screenNumber(); }
|
||||
|
||||
/// @return number of workspaces
|
||||
size_t numberOfWorkspaces() const { return m_workspaces_list.size(); }
|
||||
|
||||
inline const Icons &iconList() const { return m_icon_list; }
|
||||
inline Icons &iconList() { return m_icon_list; }
|
||||
const Icons &iconList() const { return m_icon_list; }
|
||||
Icons &iconList() { return m_icon_list; }
|
||||
|
||||
const Workspaces &getWorkspacesList() const { return m_workspaces_list; }
|
||||
Workspaces &getWorkspacesList() { return m_workspaces_list; }
|
||||
|
|
Loading…
Reference in a new issue