mirror of
https://github.com/elementary/gala.git
synced 2024-12-19 15:21:47 +03:00
Avoid making field moving public accessible
This commit is contained in:
parent
f02b705965
commit
2fb7f4e34c
@ -25,7 +25,7 @@ namespace Gala
|
||||
WindowSwitcher winswitcher;
|
||||
WorkspaceView workspace_view;
|
||||
|
||||
internal Window? moving; //place for the window that is being moved over
|
||||
Window? moving; //place for the window that is being moved over
|
||||
|
||||
int modal_count = 0; //count of modal modes overlaying each other
|
||||
|
||||
@ -148,6 +148,10 @@ namespace Gala
|
||||
if (window == null)
|
||||
return;
|
||||
|
||||
// if there is still an unfinished window-move don't be silly and use it
|
||||
if (moving != null)
|
||||
window = moving
|
||||
|
||||
var screen = get_screen ();
|
||||
var display = screen.get_display ();
|
||||
|
||||
|
@ -211,13 +211,13 @@ namespace Gala
|
||||
switch (event.keyval) {
|
||||
case Clutter.Key.Left:
|
||||
if ((event.modifier_state & Clutter.ModifierType.SHIFT_MASK) == 1)
|
||||
plugin.move_window ((plugin.moving == null)?screen.get_display ().get_focus_window ():plugin.moving, true);
|
||||
plugin.move_window (screen.get_display ().get_focus_window (), true);
|
||||
else
|
||||
switch_to_next_workspace (true);
|
||||
return false;
|
||||
case Clutter.Key.Right:
|
||||
if ((event.modifier_state & Clutter.ModifierType.SHIFT_MASK) == 1)
|
||||
plugin.move_window ((plugin.moving == null)?screen.get_display ().get_focus_window ():plugin.moving, false);
|
||||
plugin.move_window (screen.get_display ().get_focus_window (), false);
|
||||
else
|
||||
switch_to_next_workspace (false);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user