emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] trunk r117855: Detect iconified under Compiz/Unity


From: Jan D.
Subject: [Emacs-diffs] trunk r117855: Detect iconified under Compiz/Unity
Date: Wed, 10 Sep 2014 17:03:00 +0000
User-agent: Bazaar (2.6b2)

------------------------------------------------------------
revno: 117855
revision-id: address@hidden
parent: address@hidden
committer: Jan D. <address@hidden>
branch nick: trunk
timestamp: Wed 2014-09-10 19:02:42 +0200
message:
  Detect iconified under Compiz/Unity
  
  * xterm.c (handle_one_xevent): Detect iconified by looking at
  _NET_WM_STATE_HIDDEN.
modified:
  src/ChangeLog                  changelog-20091113204419-o5vbwnq5f7feedwu-1438
  src/xterm.c                    xterm.c-20091113204419-o5vbwnq5f7feedwu-244
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2014-09-10 16:52:50 +0000
+++ b/src/ChangeLog     2014-09-10 17:02:42 +0000
@@ -1,3 +1,8 @@
+2014-09-10  Jan Djärv  <address@hidden>
+
+       * xterm.c (handle_one_xevent): Detect iconified by looking at
+       _NET_WM_STATE_HIDDEN.
+
 2014-09-10  Paul Eggert  <address@hidden>
 
        * lisp.h (DEFINE_GDB_SYMBOL_ENUM): Remove.

=== modified file 'src/xterm.c'
--- a/src/xterm.c       2014-09-09 03:22:36 +0000
+++ b/src/xterm.c       2014-09-10 17:02:42 +0000
@@ -6860,6 +6860,14 @@
             inev.ie.kind = DEICONIFY_EVENT;
             XSETFRAME (inev.ie.frame_or_window, f);
           }
+        else if (! FRAME_ICONIFIED_P (f)
+                 && f->output_data.x->net_wm_state_hidden_seen)
+          {
+            SET_FRAME_VISIBLE (f, 0);
+            SET_FRAME_ICONIFIED (f, 1);
+            inev.ie.kind = ICONIFY_EVENT;
+            XSETFRAME (inev.ie.frame_or_window, f);
+          }
 
       x_handle_property_notify (&event->xproperty);
       xft_settings_event (dpyinfo, event);


reply via email to

[Prev in Thread] Current Thread [Next in Thread]