~ubuntu-branches/ubuntu/precise/kde-workspace/precise-security

« back to all changes in this revision

Viewing changes to kwin/tiling.cpp

Tags: upstream-4.7.2
Import upstream version 4.7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
136
136
 
137
137
void Workspace::belowCursor()
138
138
{
139
 
    // TODO
 
139
    // TODO ... "WHAT?" remove? What's a parameterless void function supposed to do?
140
140
}
141
141
 
142
142
Tile* Workspace::getNiceTile() const
143
143
{
144
144
    if (!tilingEnabled()) return NULL;
 
145
    if (!activeClient()) return NULL;
145
146
    if (!tilingLayouts.value(activeClient()->desktop())) return NULL;
146
147
 
147
148
    return tilingLayouts[ activeClient()->desktop()]->findTile(activeClient());
148
 
    // TODO
 
149
    // TODO ... WHAT?
149
150
}
150
151
 
151
152
void Workspace::updateAllTiles()
409
410
void Workspace::slotToggleFloating()
410
411
{
411
412
    Client *c = activeClient();
 
413
    if (!c)
 
414
        return;
412
415
    if (tilingLayouts.value(c->desktop())) {
413
416
        tilingLayouts[ c->desktop()]->toggleFloatTile(c);
414
417
    }