config: grab the screen resource when forcing a window to be shown.
authorJan Ekström <jan.ekstrom@intel.com>
Thu, 13 Nov 2014 08:47:12 +0000 (10:47 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:19 +0000 (18:37 +0200)
Mismatch in the resource and actual window state causes undesired
behavior.

Change-Id: I3bcb7a2e81c9147c0b2fd8a0734b670cb495b681

packaging.in/murphy.lua

index 552b309..08b6225 100644 (file)
@@ -1755,10 +1755,13 @@ if sc then
                 print('### ==> SHOW')
                 print(tostring(msg.arg))
             end
+
+            local surface = msg.arg.surface
+
             if nores then
                 wmgr:window_request(msg.arg, a, 0)
+                resclnt:resource_set_acquire("screen", surface)
             else
-                local surface = msg.arg.surface
                 resclnt:resource_set_acquire("screen", surface)
                 resmgr:window_raise(msg.appid, surface, 1)
             end