Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Plasma
KWin
Commits
4cef894e
Commit
4cef894e
authored
Sep 24, 2017
by
Martin Flöser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Drop delegating Workspace::slotToggleCompositing
Instead connect global shortcut directly to method in Compositor.
parent
9b182780
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2 additions
and
9 deletions
+2
-9
kwinbindings.cpp
kwinbindings.cpp
+1
-1
useractions.cpp
useractions.cpp
+1
-0
workspace.cpp
workspace.cpp
+0
-7
workspace.h
workspace.h
+0
-1
No files found.
kwinbindings.cpp
View file @
4cef894e
...
...
@@ -159,7 +159,7 @@ DEF(I18N_NOOP("Switch to Next Screen"), 0, slotSwitchToNextScreen);
DEF
(
I18N_NOOP
(
"Switch to Previous Screen"
),
0
,
slotSwitchToPrevScreen
);
DEF
(
I18N_NOOP
(
"Kill Window"
),
Qt
::
CTRL
+
Qt
::
ALT
+
Qt
::
Key_Escape
,
slotKillWindow
);
DEF
(
I18N_NOOP
(
"Suspend Compositing"
),
Qt
::
SHIFT
+
Qt
::
ALT
+
Qt
::
Key_F12
,
slotToggleCompositing
);
DEF
6
(
I18N_NOOP
(
"Suspend Compositing"
),
Qt
::
SHIFT
+
Qt
::
ALT
+
Qt
::
Key_F12
,
Compositor
::
self
(),
Compositor
::
slotToggleCompositing
);
DEF6
(
I18N_NOOP
(
"Invert Screen Colors"
),
0
,
kwinApp
()
->
platform
(),
Platform
::
invertScreen
);
#undef DEF
...
...
useractions.cpp
View file @
4cef894e
...
...
@@ -34,6 +34,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "useractions.h"
#include "cursor.h"
#include "client.h"
#include "composite.h"
#include "input.h"
#include "workspace.h"
#include "effects.h"
...
...
workspace.cpp
View file @
4cef894e
...
...
@@ -1654,13 +1654,6 @@ QString Workspace::supportInformation() const
return
support
;
}
void
Workspace
::
slotToggleCompositing
()
{
if
(
m_compositor
)
{
m_compositor
->
slotToggleCompositing
();
}
}
Client
*
Workspace
::
findClient
(
std
::
function
<
bool
(
const
Client
*
)
>
func
)
const
{
if
(
Client
*
ret
=
Toplevel
::
findInList
(
clients
,
func
))
{
...
...
workspace.h
View file @
4cef894e
...
...
@@ -443,7 +443,6 @@ public Q_SLOTS:
void
slotSetupWindowShortcut
();
void
setupWindowShortcutDone
(
bool
);
void
slotToggleCompositing
();
void
updateClientArea
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment