Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Unmaintained
KDE Workspace
Commits
baa30c8e
Commit
baa30c8e
authored
Apr 01, 2012
by
Martin Flöser
Browse files
Add notifications for Window goes to/fro Fullscreen
FEATURE: 124612 FIXED-IN: 4.9.0 REVIEW: 104457
parent
b728c6a5
Changes
4
Hide whitespace changes
Inline
Side-by-side
kwin/geometry.cpp
View file @
baa30c8e
...
...
@@ -2353,6 +2353,11 @@ void Client::setFullScreen(bool set, bool user)
if
(
was_fs
!=
isFullScreen
())
{
emit
clientFullScreenSet
(
this
,
set
,
user
);
emit
fullScreenChanged
();
if
(
isFullScreen
())
{
Notify
::
raise
(
Notify
::
FullScreen
);
}
else
{
Notify
::
raise
(
Notify
::
UnFullScreen
);
}
}
}
...
...
kwin/kwin.notifyrc
View file @
baa30c8e
...
...
@@ -7424,3 +7424,11 @@ Comment[x-test]=xxTiling Layout has been changedxx
Comment[zh_CN]=已更改平铺布局
Comment[zh_TW]=鋪排佈局已變更
Action=Popup
[Event/fullscreen]
Name=Window Fullscreen Set
Comment=A window has been set to fullscreen
[Event/unfullscreen]
Name=Window Fullscreen Restored
Comment=A window has been restored from fullscreen
kwin/notifications.cpp
View file @
baa30c8e
...
...
@@ -104,6 +104,12 @@ bool Notify::raise(Event e, const QString& message, Client* c)
case
TilingLayoutChanged
:
event
=
"tilinglayoutchanged"
;
break
;
case
FullScreen
:
event
=
"fullscreen"
;
break
;
case
UnFullScreen
:
event
=
"unfullscreen"
;
break
;
default:
if
((
e
>
DesktopChange
)
&&
(
e
<=
DesktopChange
+
20
))
{
event
=
QString
(
"desktop%1"
).
arg
(
e
-
DesktopChange
);
...
...
kwin/notifications.h
View file @
baa30c8e
...
...
@@ -59,6 +59,8 @@ public:
DemandAttentionOther
,
CompositingSuspendedDbus
,
TilingLayoutChanged
,
FullScreen
,
UnFullScreen
,
DesktopChange
=
100
};
...
...
Write
Preview
Supports
Markdown
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