Drop support for _KDE_WM_CHANGE_STATE
It was only used by KWindowSystem::minimizeWindow and ::unminimizeWindow and got removed from there. REVIEW: 118224
This commit is contained in:
parent
1ad823377a
commit
82e5b1a5cc
3 changed files with 1 additions and 20 deletions
|
@ -39,7 +39,6 @@ Atoms::Atoms()
|
|||
, motif_wm_hints(QByteArrayLiteral("_MOTIF_WM_HINTS"))
|
||||
, net_wm_context_help(QByteArrayLiteral("_NET_WM_CONTEXT_HELP"))
|
||||
, net_wm_ping(QByteArrayLiteral("_NET_WM_PING"))
|
||||
, kde_wm_change_state(QByteArrayLiteral("_KDE_WM_CHANGE_STATE"))
|
||||
, net_wm_user_time(QByteArrayLiteral("_NET_WM_USER_TIME"))
|
||||
, kde_net_wm_user_creation_time(QByteArrayLiteral("_KDE_NET_WM_USER_CREATION_TIME"))
|
||||
, kde_system_tray_embedding(QByteArrayLiteral("_KDE_SYSTEM_TRAY_EMBEDDING"))
|
||||
|
|
1
atoms.h
1
atoms.h
|
@ -48,7 +48,6 @@ public:
|
|||
Xcb::Atom motif_wm_hints;
|
||||
Xcb::Atom net_wm_context_help;
|
||||
Xcb::Atom net_wm_ping;
|
||||
Xcb::Atom kde_wm_change_state;
|
||||
Xcb::Atom net_wm_user_time;
|
||||
Xcb::Atom kde_net_wm_user_creation_time;
|
||||
Xcb::Atom kde_system_tray_embedding;
|
||||
|
|
19
events.cpp
19
events.cpp
|
@ -763,24 +763,7 @@ void Client::clientMessageEvent(xcb_client_message_event_t *e)
|
|||
if (e->window != window())
|
||||
return; // ignore frame/wrapper
|
||||
// WM_STATE
|
||||
if (e->type == atoms->kde_wm_change_state) {
|
||||
bool avoid_animation = (e->data.data32[ 1 ]);
|
||||
if (e->data.data32[ 0 ] == XCB_ICCCM_WM_STATE_ICONIC)
|
||||
minimize();
|
||||
else if (e->data.data32[ 0 ] == XCB_ICCCM_WM_STATE_NORMAL) {
|
||||
// copied from mapRequest()
|
||||
if (isMinimized())
|
||||
unminimize(avoid_animation);
|
||||
if (isShade())
|
||||
setShade(ShadeNone);
|
||||
if (!isOnCurrentDesktop()) {
|
||||
if (workspace()->allowClientActivation(this))
|
||||
workspace()->activateClient(this);
|
||||
else
|
||||
demandAttention();
|
||||
}
|
||||
}
|
||||
} else if (e->type == atoms->wm_change_state) {
|
||||
if (e->type == atoms->wm_change_state) {
|
||||
if (e->data.data32[0] == XCB_ICCCM_WM_STATE_ICONIC)
|
||||
minimize();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue