Commit Graph
22 Commits
Author SHA1 Message Date
Adrian Chadd e73f47e1fb [requestchoice] refactor out gadget code
This calls the gadget code that I've refactored into libami/ .
.
2022-04-09 17:35:05 -07:00
Adrian Chadd 48f15595a4 [executecmd] migrate executecmd to use the gadgets in libami
This removes the gadget specific code in executecmd and calls
the routines I've added in libami.
2022-04-09 17:34:43 -07:00
Adrian Chadd 0e5c81f6e3 [libami] add button, textbox and textinput from requestchoice/executecmd
Marcus had written up workbench style widgets inside the two external
helper programs requestchoice and executecmd.  This ports the code over
to libami.

Note that there isn't a generic gadget or collection of gadgets yet -
this is purely a refactor of the code, and the upcoming commit that
migrates requestchoice/executecmd over to use them just handles them
directly via xlib like they have always done.
2022-04-09 17:33:21 -07:00
Adrian Chadd e0c13213c5 [amiwm] add a new command action to rotate windows
This adds a command to iterate over the set of windows.  It's not
like alt-tab in ye olde windows world where you'd alt tab once to
switch between two windows, and then keep alt-tab'ing with alt down
to go through the window list.  For now it just literally iterates
through those windows.

This makes it a lot easier to work with a large number of open
windows without having to constantly use the mouse.
2022-04-03 08:27:14 -07:00
Adrian Chadd d00be9ffa8 [amiwm] remove the global 'front' variable
This is a pretty straight forward change to remove the global front
variable and instead use a couple of accessor functions.

This hopefully will make it easier to keep track and debug when
the front screen changes.
2022-04-03 08:20:39 -07:00
Adrian Chadd 743a7a666b [amiwm] Update documentation to point to this new repository. 2022-03-24 09:18:18 -07:00
Adrian Chadd 6bd141dec1 [amiwm] add some initial comments of structure members.
Still have a long way to go.
2022-03-18 20:56:16 -07:00
Adrian Chadd 64d540a026 [amiwm] Fix window size / position issues when asked to do something insane
* ensure newly created windows are placed somewhere visible - ie, not
  off the screen.
* ensure newly created window sizes aren't insanely large, which end up
  being unable to be moved or resized in amiwm.

This has shown up with gtk apps (kicad, firefox) with their load/save
dialog.  For some reason they want to be almost 2x my desktop size,
making them super hard to use.
2022-03-17 20:38:40 -07:00
Adrian Chadd 26cecc8487 [amiwm] Use XAllocSizeHints() for the sizehints in struct Client
Although it likely doesn't matter /that/ much, the x11 xlib manual
does say to use it rather than expecting the struct to stay the same
size.

Yeah yeah it's 2022 and we really do build things from source,
ICCCM is likely not going to change that much nowdays, etc, etc.
2022-03-12 21:04:24 -08:00
Adrian Chadd 4162377f10 [libami] more compile warning fixes
* fix 32/64 bit int size printing stuff
* more if braces
2022-02-26 11:31:37 -08:00
Adrian Chadd 2a05c6f3e4 [background] Don't use GNU sed extensions
This makes it work on freebsd!
2022-02-22 22:00:47 -08:00
Adrian Chadd 31b98f3ef0 [libami] Another if / else clause warning to clean up 2022-02-18 21:52:15 -08:00
Adrian Chadd 32cfb5ab21 amiwm: since options were removed, make the Screens menu work again 2022-02-18 19:31:55 -08:00
Adrian Chadd 9825ecbe6b [launcher] launcher install fixes.
* install it!
* install the other .info icons too!
* add some basic documentation.
2022-02-13 20:21:44 -08:00
Adrian Chadd 1ce0d7c975 [amiwm] delete files that aren't actually used; they're auto-generated. 2022-02-13 19:59:50 -08:00
Adrian Chadd 294256771a [amiwm] Fix logic for the window size when maximized.
This is from Marcus' bzr repository (rev 126).
2022-02-13 18:56:38 -08:00
Adrian Chadd 77239205d7 [launcher] Add launcher into the build 2022-02-13 18:55:40 -08:00
Adrian Chadd b0830232ff [launcher] fix compile warning 2022-02-13 18:55:18 -08:00
Adrian Chadd 54cb67609e [filesystem] install/document the filesystem module 2022-02-10 12:50:44 -08:00
Adrian Chadd 5365f97cbe [amiwm] Do another pass to clean up build warnings
This is mostly a "dangling if" cleanup, but I did add some other
comments here and there!
2022-02-10 12:37:38 -08:00
Adrian Chadd 59eae9c029 [libami] Make 'clean' a libami target
To make it easier / cleaner to build libami by itself, make a clean
target and call into it from the top level makefile as needed.
2020-11-10 11:55:10 -08:00
Adrian Chadd 31b2a069ea [libami] Fix compile warnings in module.c 2020-11-10 11:54:56 -08:00