Skip to content

Commit

Permalink
Merge pull request #177 from heuer/deprecated_surface_import
Browse files Browse the repository at this point in the history
Don't use deprecated surface module. Closes #176
  • Loading branch information
flacjacket authored Apr 16, 2024
2 parents acb12ea + fc291c3 commit 64d03cd
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion wlroots/wlr_types/cursor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from wlroots import PtrHasData, ffi, lib, ptr_or_null

from .compositor import Surface
from .input_device import InputDevice, InputDeviceType
from .output import Output
from .output_layout import OutputLayout
Expand All @@ -24,7 +25,6 @@
PointerSwipeEndEvent,
PointerSwipeUpdateEvent,
)
from .surface import Surface
from .touch import (
TouchCancelEvent,
TouchDownEvent,
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/data_device_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from wlroots import Ptr, PtrHasData, ffi, lib

from .surface import Surface
from .compositor import Surface

_weakkeydict: WeakKeyDictionary = WeakKeyDictionary()

Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/foreign_toplevel_management_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

from wlroots import Ptr, PtrHasData, ffi, lib

from .compositor import Surface
from .output import Output
from .surface import Surface

if TYPE_CHECKING:
from pywayland.server import Display
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/idle_inhibit_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

from wlroots import Ptr, PtrHasData, ffi, lib

from .surface import Surface
from .compositor import Surface


class IdleInhibitorManagerV1(Ptr):
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/layer_shell_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

from wlroots import Ptr, PtrHasData, ffi, lib

from .compositor import Surface
from .output import Output
from .surface import Surface
from .xdg_shell import SurfaceCallback, T

if TYPE_CHECKING:
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/pointer_constraints_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from wlroots import Ptr, ffi, lib
from wlroots.util.region import PixmanRegion32

from .surface import Surface
from .compositor import Surface

if TYPE_CHECKING:
from pywayland.server import Display
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/seat.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@

from wlroots import Ptr, PtrHasData, ffi, lib

from .compositor import Surface
from .data_device_manager import Drag
from .input_device import ButtonState
from .keyboard import Keyboard, KeyboardKeyEvent, KeyboardModifiers
from .pointer import AxisOrientation, AxisSource
from .surface import Surface

_weakkeydict: WeakKeyDictionary = WeakKeyDictionary()

Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/xdg_activation_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

from wlroots import Ptr, ffi, lib

from .surface import Surface
from .compositor import Surface

if TYPE_CHECKING:
from pywayland.server import Display
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/xdg_decoration_v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

from wlroots import PtrHasData, ffi, lib

from .surface import Surface
from .compositor import Surface

if TYPE_CHECKING:
from pywayland.server import Display
Expand Down
2 changes: 1 addition & 1 deletion wlroots/wlr_types/xdg_shell.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from wlroots.util.box import Box
from wlroots.util.edges import Edges

from .compositor import Surface
from .output import Output
from .surface import Surface

_weakkeydict: weakref.WeakKeyDictionary = weakref.WeakKeyDictionary()

Expand Down
2 changes: 1 addition & 1 deletion wlroots/xwayland.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from pywayland.server import Signal

from wlroots import Ptr, PtrHasData, ffi, lib, str_or_none
from wlroots.wlr_types.surface import Surface as WlrSurface
from wlroots.wlr_types.compositor import Surface as WlrSurface

if TYPE_CHECKING:
from typing import TypeVar
Expand Down

0 comments on commit 64d03cd

Please sign in to comment.