unixwork / xnedit

A fast and classic X11 text editor, based on NEdit, with full unicode support and antialiased text rendering.
Other
83 stars 11 forks source link

Resources for coordinates of dialogs #112

Open cblc opened 1 year ago

cblc commented 1 year ago

Whenever I open a dialog (Search, Open File, etc...), it always appears at 0,0 (upper left pixel in the screen), which is not very comfortable (I have the MacOS Dock in vertical layout, at the left edge, so the first thing I have to do when I open a dialog is to drag it a bit).

It would be great if there could be a resource for specifying the coordinates for dialogs. Maybe, even better, a setting for showing dialogs centered with respect to the NEdit window, but if that's hard to implement, setting the coordinates would be fine for me (I'd choose 200,200, for example)

unixwork commented 1 year ago

XNEdit already tries to center the windows and dialogs on the screen. It depends on the window manager if this works. I will check if this can be improved on macOS.

pucicu commented 1 year ago

I would be happy if the window placement can be improved. I have a specific problem with macOS and working with 2 screens. See here: XQuartz/issues/344. I'm not sure whether this is an XQuartz problem alone. But when there would be a resource to place xnedit windows, I could at least find a workaround as long as XQuartz cannot fix this problem.