Review your favorite Linux distribution.
Go Back > Blogs
User Name



Bash xdotool+wmctrl "daemon" that maximizes "almost maximized" windows

Posted 10-01-2016 at 07:16 PM by the dsc (linux-related notes)
Tags openbox, wmctrl

I find annoying that, for whatever reason, it seems that some windows get "almost maximized" (I have the impression that some browsers do that by "design", even though I'm not sure), and then I end up clicking in a desktop pixel instead of the scroll bar or something. In my case that action is assigned to show the desktop/minimize all windows.

So here's what I just came up with so far, for a 1280x1024 resolution:

while true ; do sleep 3
Posted in Uncategorized
Views 94 Comments 0 the dsc is offline

x86_64 part 2

Posted 03-06-2012 at 09:57 AM by Rod3775

When XWindows was ported to 64 bit architectures, the decision was made (probably for legacy compatibility) not to add a 64 bit data format to routines that return overloaded pointers, specifically XGetWindowProperties. Pointers, which are 64 bits, are returned in 64 bit elements that are claimed to be 32 bits. There is no way to cope with this in user code, except to check which architecture you are running on. The compiler define "__x86_64" is set on Intel 64 bit compilers. wmctrl (not...
Posted in Uncategorized
Views 822 Comments 0 Rod3775 is offline

x86_64 software issues part 1

Posted 03-06-2012 at 09:39 AM by Rod3775

This was my first experience with 64 bit software. I did a stock install of Slackware64, and ran into the following issues:
(a) wpa_supplicant could not reauthenticate after a disconnect.
(b) wmctrl did not work correctly (could not return window list)
(a) I tried to patch wpa_cli to monitor wpa_supplicant and restart it, and discovered that when it is compiled with -O2 (as specified in its Makefile), gcc-4.5.2 compiled bad code - the return value of a function returning...
Posted in Uncategorized
Views 851 Comments 0 Rod3775 is offline


All times are GMT -5. The time now is 04:08 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration