Commit baa30c8e authored by Martin Flöser's avatar Martin Flöser
Browse files

Add notifications for Window goes to/fro Fullscreen

FEATURE: 124612
FIXED-IN: 4.9.0
REVIEW: 104457
parent b728c6a5
......@@ -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);
}
}
}
......
......@@ -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
......@@ -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);
......
......@@ -59,6 +59,8 @@ public:
DemandAttentionOther,
CompositingSuspendedDbus,
TilingLayoutChanged,
FullScreen,
UnFullScreen,
DesktopChange = 100
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment