display: Kill off grab_screen

Just like active_screen, the screen can always be inferred
from the MetaDisplay, so there's no point in keeping it around.
This commit is contained in:
Jasper St. Pierre
2014-03-18 17:57:53 -04:00
parent d7519f4ebc
commit 47aa583625
6 changed files with 11 additions and 23 deletions

View File

@ -1872,8 +1872,7 @@ meta_display_process_key_event (MetaDisplay *display,
* we're in some special keyboard mode such as window move
* mode.
*/
if (window ? (window == display->grab_window) :
(screen == display->grab_screen))
if ((window && window == display->grab_window) || !window)
{
switch (display->grab_op)
{