Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
gtk
gtk
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,133
    • Issues 1,133
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 147
    • Merge Requests 147
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gtkgtk
  • Issues
  • #3834

Closed
Open
Created Apr 05, 2021 by Dadoum@Dadoum

[Feature Request] Create a Surface's PositionContext to manipulate position of windows

What ?

A new object storing everything related to absolute position on screen for Gtk.Window/Gdk.Surface. It should contain position setter and getter, and moving signal and moved. It should be null in an environment where absolute position has no sense (like in tiling WMs).

Why ?

In Gtk 4 has been removed the possibility of moving windows programmatically. This is generally a bad practice, but it some case it is really useful (in docking APIs by example). Now, to move windows, we must re-implement functions for each back-end manually, which is expensive.

Moving these functions out of Surface and Window will permit to set some cases where re-positioning should never be done, for dialogs and tooltips by example.

Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None